2017-04-04 21:31:00 +00:00
|
|
|
plugins {
|
2021-01-01 16:14:04 +00:00
|
|
|
id "com.jfrog.bintray" version "1.8.5"
|
|
|
|
id "com.github.dcendents.android-maven" version "2.1"
|
2017-04-04 21:31:00 +00:00
|
|
|
}
|
|
|
|
|
2017-04-01 17:06:02 +00:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
2017-04-04 21:31:00 +00:00
|
|
|
ext {
|
|
|
|
bintrayName = 'terminal-emulator'
|
|
|
|
publishedGroupId = 'com.termux'
|
|
|
|
libraryName = 'TerminalEmulator'
|
|
|
|
artifact = 'terminal-emulator'
|
|
|
|
libraryDescription = 'The terminal emulator used in Termux'
|
2021-01-01 15:59:59 +00:00
|
|
|
siteUrl = 'https://github.com/termux/termux-app'
|
|
|
|
gitUrl = 'https://github.com/termux/termux-app.git'
|
2021-02-03 14:59:34 +00:00
|
|
|
libraryVersion = '0.106'
|
2017-04-04 21:31:00 +00:00
|
|
|
}
|
|
|
|
|
2017-04-01 17:06:02 +00:00
|
|
|
android {
|
2020-08-04 12:36:14 +00:00
|
|
|
compileSdkVersion project.properties.compileSdkVersion.toInteger()
|
|
|
|
ndkVersion project.properties.ndkVersion
|
2017-04-01 17:06:02 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
2020-08-04 12:36:14 +00:00
|
|
|
minSdkVersion project.properties.minSdkVersion.toInteger()
|
|
|
|
targetSdkVersion project.properties.targetSdkVersion.toInteger()
|
2017-04-01 17:06:02 +00:00
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
ndkBuild {
|
|
|
|
cFlags "-std=c11", "-Wall", "-Wextra", "-Werror", "-Os", "-fno-stack-protector", "-Wl,--gc-sections"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ndk {
|
|
|
|
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
ndkBuild {
|
|
|
|
path "src/main/jni/Android.mk"
|
|
|
|
}
|
|
|
|
}
|
2018-09-28 22:49:05 +00:00
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2021-01-02 07:57:48 +00:00
|
|
|
|
|
|
|
testOptions {
|
|
|
|
unitTests.returnDefaultValues = true
|
|
|
|
}
|
2017-04-01 17:06:02 +00:00
|
|
|
}
|
|
|
|
|
2017-04-02 12:21:36 +00:00
|
|
|
tasks.withType(Test) {
|
|
|
|
testLogging {
|
|
|
|
events "started", "passed", "skipped", "failed"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-01 17:06:02 +00:00
|
|
|
dependencies {
|
2021-01-01 16:14:04 +00:00
|
|
|
testImplementation 'junit:junit:4.13.1'
|
2017-04-01 17:06:02 +00:00
|
|
|
}
|
2017-04-04 21:31:00 +00:00
|
|
|
|
|
|
|
apply from: '../scripts/bintray-publish.gradle'
|