41 lines
1.2 KiB
Groovy
41 lines
1.2 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
namespace 'com.dragonssh.xhttpdemo'
|
|
compileSdk 36
|
|
|
|
defaultConfig {
|
|
applicationId 'com.dragonssh.xhttpdemo'
|
|
minSdk 26
|
|
targetSdk 36
|
|
versionCode 8
|
|
versionName '1.0.7'
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
|
|
// tun2socks is a native executable that must be run from nativeLibraryDir,
|
|
// which is the only app-owned location Android lets you exec from (API 29+
|
|
// blocks exec out of the writable data dir under SELinux). Legacy packaging
|
|
// extracts libtun2socks.so to nativeLibraryDir at install so CustomNativeLoader
|
|
// can run it directly. Without this the loader falls back to files/libtun2socks
|
|
// and exec fails with "error=13, Permission denied".
|
|
packagingOptions {
|
|
jniLibs {
|
|
useLegacyPackaging = true
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':service')
|
|
implementation 'androidx.appcompat:appcompat:1.7.1'
|
|
implementation 'com.google.android.material:material:1.13.0'
|
|
implementation 'androidx.recyclerview:recyclerview:1.4.0'
|
|
}
|