build.gradle
1 // The Android Gradle Plugin builds the native code with the Android NDK. 2 3 group 'com.flutter_rust_bridge.rust_lib_dead_drop' 4 version '1.0' 5 6 buildscript { 7 repositories { 8 google() 9 mavenCentral() 10 } 11 12 dependencies { 13 // The Android Gradle Plugin knows how to build native code with the NDK. 14 classpath 'com.android.tools.build:gradle:7.3.0' 15 } 16 } 17 18 rootProject.allprojects { 19 repositories { 20 google() 21 mavenCentral() 22 } 23 } 24 25 apply plugin: 'com.android.library' 26 27 android { 28 if (project.android.hasProperty("namespace")) { 29 namespace 'com.flutter_rust_bridge.rust_lib_dead_drop' 30 } 31 32 // Bumping the plugin compileSdkVersion requires all clients of this plugin 33 // to bump the version in their app. 34 compileSdkVersion 33 35 36 // Use the NDK version 37 // declared in /android/app/build.gradle file of the Flutter project. 38 // Replace it with a version number if this plugin requires a specfic NDK version. 39 // (e.g. ndkVersion "23.1.7779620") 40 ndkVersion android.ndkVersion 41 42 compileOptions { 43 sourceCompatibility JavaVersion.VERSION_1_8 44 targetCompatibility JavaVersion.VERSION_1_8 45 } 46 47 defaultConfig { 48 minSdkVersion 19 49 } 50 } 51 52 apply from: "../cargokit/gradle/plugin.gradle" 53 cargokit { 54 manifestDir = "../../../core" 55 libname = "rust_lib_dead_drop" 56 }