Suggestions

close search

Install stringee-flutter-plugin

  1. Add stringee-flutter-plugin into your pubspec.yaml file

    dependencies:
    ...
        stringee_flutter_plugin:
        git:
            url: https://github.com/stringeecom/stringee_flutter_plugin.git
  2. Now run flutter pub get in your terminal to install stringee-flutter-plugin into your project

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/buidl.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