53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
import com.android.build.gradle.LibraryExtension
|
|
import org.gradle.kotlin.dsl.configure
|
|
import org.gradle.kotlin.dsl.withGroovyBuilder
|
|
|
|
group = "com.flutter_rust_bridge.ccc_cryptography"
|
|
version = "1.0"
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle:7.3.0")
|
|
}
|
|
}
|
|
|
|
rootProject.allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
apply(plugin = "com.android.library")
|
|
apply(from = "../cargokit/gradle/plugin.gradle")
|
|
|
|
configure<LibraryExtension> {
|
|
if (project.extensions.extraProperties.has("android") || project.extensions.findByName("android") != null) {
|
|
namespace = "com.flutter_rust_bridge.ccc_cryptography"
|
|
}
|
|
|
|
compileSdk = flutter.compileSdkVersion
|
|
ndkVersion = flutter.ndkVersion
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdk = flutter.minSdkVersion
|
|
targetSdk = flutter.targetSdkVersion
|
|
}
|
|
}
|
|
|
|
extensions.configure<Any>("cargokit") {
|
|
withGroovyBuilder {
|
|
setProperty("manifestDir", "../rust")
|
|
setProperty("libname", "ccc_cryptography")
|
|
}
|
|
} |