2024-01-21 15:27:24 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath "com.android.tools.build:gradle:7.2.1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: "com.android.library"
|
|
|
|
|
|
|
|
|
|
|
|
def appProject = rootProject.allprojects.find { it.plugins.hasPlugin('com.android.application') }
|
|
|
|
|
|
|
|
def getExtOrDefault(name) {
|
|
|
|
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["Transmission_" + name]
|
|
|
|
}
|
|
|
|
|
|
|
|
def getExtOrIntegerDefault(name) {
|
|
|
|
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["Transmission_" + name]).toInteger()
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
ndkVersion getExtOrDefault("ndkVersion")
|
|
|
|
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
|
|
|
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
abiFilters "arm64-v8a"
|
2024-08-25 23:11:37 +00:00
|
|
|
arguments "-DVCPKG_TARGET_ANDROID=ON", "-DWITH_CRYPTO=openssl", "-DRUN_CLANG_TIDY=OFF"
|
2024-01-21 15:27:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
version "3.22.1"
|
|
|
|
path "../CMakeLists.txt"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
disable "GradleCompatible"
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
prefab true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
|
|
|
}
|
|
|
|
|