2022-04-14 08:50:58 +02:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
apply from: "../commons.gradle"
|
|
|
|
apply from : '../dependencies.gradle'
|
|
|
|
|
|
|
|
android {
|
2023-01-06 22:15:05 +01:00
|
|
|
ndkVersion '25.1.8937393'
|
2022-04-14 08:50:58 +02:00
|
|
|
|
|
|
|
sourceSets {
|
2023-01-06 22:15:05 +01:00
|
|
|
main {
|
|
|
|
jniLibs.srcDirs = ['./src/main/libs']
|
|
|
|
}
|
2022-04-14 08:50:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
defaultConfig {
|
2023-01-06 22:15:05 +01:00
|
|
|
minSdkVersion 16
|
|
|
|
targetSdkVersion 33
|
2022-04-14 08:50:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2022-08-20 14:51:54 +02:00
|
|
|
packagingOptions {
|
|
|
|
resources {
|
2023-01-06 22:15:05 +01:00
|
|
|
excludes += ['META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version']
|
2022-08-20 14:51:54 +02:00
|
|
|
}
|
|
|
|
}
|
2022-04-14 08:50:58 +02:00
|
|
|
|
|
|
|
|
2022-08-20 14:51:54 +02:00
|
|
|
lint {
|
2022-04-14 08:50:58 +02:00
|
|
|
abortOnError true
|
2022-08-20 14:51:54 +02:00
|
|
|
checkReleaseBuilds false
|
|
|
|
disable 'InvalidPackage'
|
2022-04-14 08:50:58 +02:00
|
|
|
htmlReport true
|
2022-08-20 14:51:54 +02:00
|
|
|
lintConfig file('../lint.xml')
|
2022-04-14 08:50:58 +02:00
|
|
|
textReport false
|
2022-08-20 14:51:54 +02:00
|
|
|
xmlReport false
|
2022-04-14 08:50:58 +02:00
|
|
|
}
|
2022-12-08 13:29:02 +01:00
|
|
|
namespace 'org.torproject.android.service'
|
2022-04-14 08:50:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
2023-01-06 22:15:05 +01:00
|
|
|
api libs.guardian_jtorctl
|
|
|
|
api project(':OrbotLib')
|
|
|
|
api project(':tor-android')
|
2022-04-14 08:50:58 +02:00
|
|
|
|
2023-01-06 22:15:05 +01:00
|
|
|
// api libs.tor_android
|
2022-04-14 08:50:58 +02:00
|
|
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
|
2023-01-06 22:15:05 +01:00
|
|
|
implementation 'androidx.core:core:1.9.0'
|
|
|
|
implementation 'com.gitlab.guardianproject:jsocksandroid:1.0.4'
|
2022-04-14 08:50:58 +02:00
|
|
|
implementation 'com.offbynull.portmapper:portmapper:2.0.5'
|
2023-01-06 22:15:05 +01:00
|
|
|
implementation 'androidx.work:work-runtime-ktx:2.8.0-rc01'
|
2022-04-14 08:50:58 +02:00
|
|
|
|
2023-01-06 22:15:05 +01:00
|
|
|
implementation files('../libs/geoip.jar')
|
2022-04-14 08:50:58 +02:00
|
|
|
|
|
|
|
|
2023-01-06 22:15:05 +01:00
|
|
|
}
|