Download stringee-flutter-plugin here: https://github.com/stringeecom/stringee_flutter_plugin
Put stringee-flutter-plugin into the same directory of your project them add the following to your pubspec.yaml
file
dependencies:
stringee_flutter_plugin:
git:
url: https://github.com/stringeecom/stringee_flutter_plugin.git
Install the plugin by running the following command from the project root:
$ flutter pub get
Permissions
The Stringee Android SDK requires some permissions from your AndroidManifest
android/app/src/main/AndroidManifest.xml
// for internet access
<uses-permission android:name="android.permission.INTERNET" />
Proguard
If your project uses ProGuard, you may have to add the following settings to the ProGuard configuration file to make sure Stringee builds correctly:
proguard-rules.pro
in your app/
dir and insert inside:#Flutter Wrapper
-dontwarn org.webrtc.**
-keep class org.webrtc.** { *; }
-keep class com.stringee.** { *; }
/app/buidl.gradle
:android {
buildTypes {
release {
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
Add volley library
In your file build.gradle
add this line:
dependencies {
implementation 'com.android.volley:volley:1.2.1'
}
From the command line run following command:
pod install --repo-update
After run cocoapods command, open project file .xcworkspace
In the Build Settings
tab -> Other linker flags
add $(inherited)
flag
In the Build Settings
tab -> Enable bitcode
select NO
In the Build Settings
tab -> Allow Non-modular includes in Framework Modules
select YES