mirror of
https://github.com/vectras-team/termux-x11.git
synced 2024-11-23 23:00:20 +00:00
3afcae5cec
1. Fix for https://github.com/termux/termux-packages/issues/10940 working inside shell_loader
2. Getting rid of using `Reflection` API and `CrossVersionReflectedMethod` in the project
3. Unhiding some non-SDK API's to the project using gradle's `compileOnly` dependency
4. Getting rid of library unpacking and making loader open it directly from apk ( 6cdfb75c44 (commitcomment-77856313)
). @agnostic-apollo is the best!!!
Some cleanup...
Bumping versionCode
51 lines
1.4 KiB
Groovy
51 lines
1.4 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
defaultConfig {
|
|
applicationId "com.termux.shell_loader"
|
|
minSdkVersion 24
|
|
// Note: targetSdkVersion affects only tests,
|
|
// normally, even though this is packaged as apk,
|
|
// it's not loaded as apk so targetSdkVersion is ignored.
|
|
// targetSdkVersion this must be < 28 because this application accesses hidden apis
|
|
//noinspection ExpiredTargetSdkVersion,OldTargetApi
|
|
targetSdkVersion 28
|
|
versionCode 1
|
|
versionName "0.1"
|
|
}
|
|
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
path "src/main/jni/Android.mk"
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
packagingOptions {
|
|
jniLibs {
|
|
// This will allow us to use shared libraries inside *.apk, without unpacking
|
|
// @agnostic-apollo is the best
|
|
// https://github.com/termux/termux-x11/commit/6cdfb75c4451eef63f114a93baef5ba73b7cfd8c#commitcomment-77856313
|
|
useLegacyPackaging false
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':common')
|
|
compileOnly project(':starter:stub')
|
|
}
|