Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ext {
}

android {
namespace "com.termux"
namespace = "com.termux"

compileSdkVersion project.properties.compileSdkVersion.toInteger()
ndkVersion = System.getenv("JITPACK_NDK_VERSION") ?: project.properties.ndkVersion
Expand Down Expand Up @@ -68,11 +68,11 @@ android {

splits {
abi {
enable ((gradle.startParameter.taskNames.any { it.contains("Debug") } && splitAPKsForDebugBuilds == "1") ||
enable = ((gradle.startParameter.taskNames.any { it.contains("Debug") } && splitAPKsForDebugBuilds == "1") ||
(gradle.startParameter.taskNames.any { it.contains("Release") } && splitAPKsForReleaseBuilds == "1"))
reset ()
include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
universalApk true
universalApk = true
}
}
}
Expand All @@ -88,19 +88,20 @@ android {

buildTypes {
release {
minifyEnabled true
shrinkResources false // Reproducible builds
minifyEnabled = true
shrinkResources = false // Reproducible builds
signingConfig = signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

debug {
signingConfig signingConfigs.debug
signingConfig = signingConfigs.debug
}
}

compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
coreLibraryDesugaringEnabled = true

sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
Expand All @@ -124,7 +125,7 @@ android {

packagingOptions {
jniLibs {
useLegacyPackaging true
useLegacyPackaging = true
}
}

Expand All @@ -141,7 +142,7 @@ android {
}

buildFeatures {
buildConfig true
buildConfig = true
}
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven { url = "https://jitpack.io" }
}
}
4 changes: 2 additions & 2 deletions terminal-emulator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

android {
namespace "com.termux.emulator"
namespace = "com.termux.emulator"

compileSdkVersion project.properties.compileSdkVersion.toInteger()
ndkVersion = System.getenv("JITPACK_NDK_VERSION") ?: project.properties.ndkVersion
Expand All @@ -24,7 +24,7 @@ android {

buildTypes {
release {
minifyEnabled false
minifyEnabled = false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand Down
4 changes: 2 additions & 2 deletions terminal-view/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

android {
namespace "com.termux.view"
namespace = "com.termux.view"
compileSdkVersion project.properties.compileSdkVersion.toInteger()

dependencies {
Expand All @@ -18,7 +18,7 @@ android {

buildTypes {
release {
minifyEnabled false
minifyEnabled = false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand Down
4 changes: 2 additions & 2 deletions termux-shared/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ android {

buildTypes {
release {
minifyEnabled false
minifyEnabled = false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
coreLibraryDesugaringEnabled = true

sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
Expand Down