Synerise SDK plugin for Flutter.
Most up-to-date documentation is available at Developer Guide - Mobile SDK.
- Access to workspace
- A Profile API Key
- Flutter configured on your machine - Getting Started
- VS Code / Android Studio / Xcode
For the Android platform it uses the Synerise Android SDK.
The development and debugging can be done with Android Studio.
- Recommended environment:
- Minimum Android SDK version - 24
- Supported targetSDKVersion - 33
For the iOS platform it uses the Synerise iOS SDK.
The development and debugging can be done with Xcode.
- Recommended environment:
- Xcode 16
- iOS SDK 18
- Target deployment:
- iOS 13.0+ for SDK versions 2.0.0 and higher
- iOS 9.0+ for SDK versions lower than 2.0.0
Bitcode is not supported in SDK version 2.0.0 and higher. Xcode ignores bitcode.
$ flutter pub add synerise_flutter_sdk
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
synerise_flutter_sdk: ^1.3.0
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
via ssh:
synerise_flutter_sdk:
git:
url: [email protected]:Synerise/synerise-flutter-sdk.git
or
via https:
synerise_flutter_sdk:
git:
url: https://github.com/Synerise/synerise-flutter-sdk.git
import 'package:synerise_flutter_sdk/synerise.dart';
Add to the android/build.gradle
:
repositories {
google()
mavenCentral()
maven { url 'https://pkgs.dev.azure.com/Synerise/AndroidSDK/_packaging/prod/maven/v1' }
}
in MainActivity add:
public class MainActivity extends FlutterActivity {
@Override
public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
super.configureFlutterEngine(flutterEngine);
SyneriseMethodChannel.configureChannel(flutterEngine);
}}
In iOS portion of your application (/ios) you will need to run pod update
.
First of all, you need to initialize Synerise Flutter SDK and provide Profile API Key
.
To get Profile API Key
, please sign in to your Synerise account and visit https://app.synerise.com/settings/apikeys.
Then, generate new API Key
for Profile
audience.
Synerise.initializer()
.withClientApiKey("YOUR_PROFILE_API_KEY")
.init();
- Open project folder in selected IDE
flutter pub get
in the terminal (dependencies pull)- Select the device/emulator in your IDE (for ios part it is required to run
pod update
in example/ios directory) - Fill the file
api_key.txt
located inexample/lib
with your profile api key - Make sure the firebase related files
example/ios/Runner/GoogleService-Info.plist
andexample/android/app/google-services.json
are filled with your firebase project configuration data - Run the example app via selected sdk or execute
cd example
andflutter run
in the terminal
Changelog can be found here.
Synerise, [email protected]. If you need support please feel free to contact us.