Skip to content

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.

License

Notifications You must be signed in to change notification settings

reclaimprotocol/reclaim-inapp-add-to-app-module

Reclaim InApp Verifier SDK Module

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.

Getting Started

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.

Android

To build the AAR file, run make android. Generated AAR files have a size of around 88 MB (Last checked on 2025-01-04).

Add the AAR file to your Android project

Consuming the Module

  1. Open /app/build.gradle
  2. 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"
        }
      }
  1. 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'
    }
  1. Add the profile build type:
    android {
      buildTypes {
        profile {
          initWith debug
        }
      }
    }

To learn more, visit https://flutter.dev/to/integrate-android-archive

iOS

To build the iOS framework, run make ios. Generated frameworks have a size of around 937 MB (Last checked on 2025-01-04).

Troubleshooting

Cronet errors on android without play services

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")
}

About

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.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published