This is a wrapper for the Reclaim InApp Verifier SDK. It is used to embed the Reclaim InApp Verifier SDK into non-Flutter native mobile apps. A Flutter Add-to-app Module for the Reclaim InApp Verifier SDK.
For help getting started with Flutter development, view the online documentation.
For instructions integrating Flutter modules to your existing applications, see the add-to-app documentation.
To build the AAR file, run make android
. Generated AAR files have a size of around 88 MB (Last checked on 2025-01-04).
Consuming the Module
- Open /app/build.gradle
- Ensure you have the repositories configured, otherwise add them:
String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "https://storage.googleapis.com"
repositories {
maven {
url '/path/to/module/android/build/host/outputs/repo'
}
maven {
url "$storageUrl/download.flutter.io"
}
}
- Make the host app depend on the Flutter module:
dependencies {
debugImplementation 'org.reclaimprotocol.reclaim_verifier_module:flutter_debug:1.0'
profileImplementation 'org.reclaimprotocol.reclaim_verifier_module:flutter_profile:1.0'
releaseImplementation 'org.reclaimprotocol.reclaim_verifier_module:flutter_release:1.0'
}
- Add the
profile
build type:
android {
buildTypes {
profile {
initWith debug
}
}
}
To learn more, visit https://flutter.dev/to/integrate-android-archive
To build the iOS framework, run make ios
. Generated frameworks have a size of around 937 MB (Last checked on 2025-01-04).
On android devices which don't have play services, you may get following errors in Android logs: java.lang.RuntimeException: All available Cronet providers are disabled. A provider should be enabled before it can be used.
, Google-Play-Services-Cronet-Provider is unavailable.
. This is because the Reclaim InApp SDK depends on cronet for making http requests.
To fix this, you need to use embedded cronet in your android app by adding the following dependency in your build.gradle dependencies block:
dependencies {
// ... other dependencies (not shown for brevity)
// Use embedded cronet
implementation("org.chromium.net:cronet-embedded:119.6045.31")
}