mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-07-03 21:21:12 +08:00
89 lines
2.7 KiB
Groovy
89 lines
2.7 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 33
|
|
buildToolsVersion "31.0.0"
|
|
ndkVersion "24.0.8215888"
|
|
|
|
defaultConfig {
|
|
applicationId "com.emanuelef.remote_capture"
|
|
minSdkVersion 21
|
|
targetSdkVersion 33
|
|
versionCode 55
|
|
versionName "1.5.2"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
}
|
|
debug {
|
|
// Use a different app ID for debug to allow its coexistence with release builds
|
|
applicationIdSuffix '.debug'
|
|
versionNameSuffix '-beta'
|
|
pseudoLocalesEnabled true
|
|
|
|
if(project.hasProperty("doNotStrip")) {
|
|
// NOTE: packagingOptions will also affect the "release" build, so the "doNotStrip"
|
|
// guard is required
|
|
packagingOptions {
|
|
// NOTE: unstripped nDPI library takes up about 4 MB!
|
|
//doNotStrip '**.so'
|
|
doNotStrip '**/libpcapd.so'
|
|
doNotStrip '**/libcapture.so'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
path file('src/main/jni/CMakeLists.txt')
|
|
version "3.18.1"
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
encoding "UTF-8"
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs += '../submodules/MaxMind-DB-Reader-java/src/main/java'
|
|
}
|
|
|
|
testOptions {
|
|
// needed by robolectric
|
|
unitTests.includeAndroidResources = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Tests
|
|
testImplementation 'junit:junit:4.13.2'
|
|
testImplementation 'androidx.test:core:1.4.0'
|
|
testImplementation "org.robolectric:robolectric:4.8"
|
|
testImplementation 'org.mockito:mockito-core:1.10.19'
|
|
|
|
// AndroidX
|
|
implementation 'androidx.appcompat:appcompat:1.4.2'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
implementation 'androidx.fragment:fragment:1.5.0'
|
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
|
|
implementation 'androidx.preference:preference:1.2.0'
|
|
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
|
implementation "androidx.navigation:navigation-fragment:2.5.0"
|
|
implementation "androidx.navigation:navigation-ui:2.5.0"
|
|
|
|
// Google
|
|
implementation 'com.google.android.material:material:1.6.1'
|
|
implementation 'com.google.code.gson:gson:2.9.0'
|
|
implementation 'org.brotli:dec:0.1.2'
|
|
|
|
// Third-party
|
|
implementation 'cat.ereza:customactivityoncrash:2.3.0'
|
|
implementation 'com.github.KaKaVip:Android-Flag-Kit:v0.1'
|
|
implementation 'com.github.AppIntro:AppIntro:6.2.0'
|
|
}
|