Suggestions

close search

Install stringee-flutter-plugin

Install stringee-plugin from pub.dev by running the following command from the project root:

$ flutter pub add stringee_plugin

Check out plugin's documentation for more information.

Android

Permission

The Stringee Android SDK requires some permissions from your AndroidManifest

  1. Open up android/app/src/main/AndroidManifest.xml
  2. Add the following lines:
    // for internet access
    <uses-permission android:name="android.permission.INTERNET" />
    // for storage access
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Proguard

ProGuard If your project uses ProGuard, you may have to add the following settings to the ProGuard configuration file to ensure Stringee builds correctly:

  1. Create file proguard-rules.pro in your app/ dir and insert inside:
    -dontwarn org.apache.**
    -keep class com.stringee.** { *; }
    -keep class org.apache.** { *; }
  2. Add the following lines to /app/build.gradle :
    android {
    ...
        buildTypes {
        ...
            release {
            ...
            useProguard true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }

iOS

  1. From the command line run following command:
    pod install --repo-update
  2. After run cocoapods command, open project file .xcworkspace
  3. In the Build Settings tab -> Other linker flags add $(inherited) flag
  4. In the Build Settings tab -> Enable bitcode select NO
  5. In the Build Settings tab -> Allow Non-modular includes in Framework Modules select YES