android_terminal/nhterm/build.gradle
Martin Valba 8c6c615e86 Backwards compatibility and theme changes
// Backards compatability from api 25 -> 21
* Created separate menu entries for older api levels that cut off certain features that dont work and lack certain java.nio features
* Cover up config loaders that use java.nio with if cases with api level comparison ( cuts off logcat error screams )
* Fix up required functions that backwards compatible java.nio dep so asset extraction on startup can work

// More MaterialUI work for dialogs and overall app theme
* Replace some more appcompat alertdialogs with MaterialUI dialogs for nicer view
2023-09-10 17:54:13 +00:00

97 lines
2.8 KiB
Groovy

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
compileSdkVersion rootProject.ext.android.COMPILE_SDK_VERSION
defaultConfig {
applicationId "com.offsec.nhterm"
minSdkVersion rootProject.ext.android.MIN_SDK_VERSION
targetSdkVersion rootProject.ext.android.TARGET_SDK_VERSION
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
resConfigs 'zh-rCN', 'zh-rTW'
externalNativeBuild {
cmake {
cppFlags "-std=c++11"
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'
}
}
signingConfigs {
debug {
storeFile file('nethunter-debug.jks')
keyAlias 'nethunter'
storePassword 'nethunter'
keyPassword 'nethunter'
}
}
sourceSets {
main {
jniLibs.srcDirs = ['src/main/jniLibs']
}
}
}
buildTypes {
release {
zipAlignEnabled true
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
kotlinOptions {
freeCompilerArgs = ["-Xallow-result-return-type"]
}
lint {
abortOnError false
checkReleaseBuilds false
}
namespace 'com.offsec.nhterm'
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation rootProject.ext.deps["junit"]
androidTestImplementation project(path: ':NeoLang')
implementation rootProject.ext.deps["kotlin-stdlib"]
implementation 'org.greenrobot:eventbus:3.3.1'
implementation 'com.github.wrdlbrnft:modular-adapter:0.3.0.22'
implementation 'com.github.wrdlbrnft:sorted-list-adapter:0.3.0.27'
implementation 'com.simplecityapps:recyclerview-fastscroll:1.0.16'
implementation 'de.psdev.licensesdialog:licensesdialog:1.9.0'
implementation 'com.github.GrenderG:Color-O-Matic:1.1.5'
implementation 'com.github.topjohnwu.libsu:core:5.2.1'
implementation 'androidx.annotation:annotation:1.3.0'
implementation "androidx.core:core:1.6.0"
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.appcompat:appcompat-resources:1.3.0'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.preference:preference:1.1.0'
implementation "androidx.compose.material:material:1.0.0"
// Backports for lower api levels
implementation 'com.llamalab.safs:safs-core:0.2.0'
implementation 'me.zhanghai.android.retrofile:library:1.1.1'
implementation project(':chrome-tabs')
implementation project(':NeoLang')
implementation project(':NeoTermBridge')
implementation project(':Xorg')
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}