Skip to content

Commit

Permalink
build.gradle with: preserveFileTimestamps=false, reproducibleFileOrde…
Browse files Browse the repository at this point in the history
…r=true
  • Loading branch information
mehrvarz committed Mar 17, 2023
1 parent a9e0d90 commit 37b71b8
Showing 1 changed file with 46 additions and 3 deletions.
49 changes: 46 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,52 @@
// WebCall Copyright 2022 timur.mobi. All rights reserved.
// WebCall Copyright 2023 timur.mobi. All rights reserved.
apply plugin: 'com.android.application'

android {
compileSdkVersion 31
defaultConfig {
applicationId "timur.webcall.callee"
minSdkVersion 21
targetSdkVersion 31
versionCode 114
versionName "1.2.5F"
versionName "1.2.5"
}
signingConfigs {
release {
def keystorePropertiesFile = rootProject.file("keystore.properties");
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
storeFile file("releasekey.keystore")
storePassword keystoreProperties['RELEASE_STORE_PASSWORD']
keyAlias keystoreProperties['RELEASE_KEY_ALIAS']
keyPassword keystoreProperties['RELEASE_KEY_PASSWORD']
//v1SigningEnabled true
//v2SigningEnabled true
}
debug {
def keystorePropertiesFile = rootProject.file("keystore.properties");
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
storeFile file("releasekey.keystore")
storePassword keystoreProperties['RELEASE_STORE_PASSWORD']
keyAlias keystoreProperties['RELEASE_KEY_ALIAS']
keyPassword keystoreProperties['RELEASE_KEY_PASSWORD']
//minifyEnabled false
}
}
buildTypes {
release {
minifyEnabled false
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
minifyEnabled false
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug

dependencies {
//Add the debugImplementation as LeakCanary framework is supposed to only run in debug
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.10'
}
}
applicationVariants.all { variant ->
variant.outputs.all {
Expand Down Expand Up @@ -48,7 +82,16 @@ repositories {
}
}
dependencies {
//implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'org.java-websocket:Java-WebSocket:1.5.2'
}
tasks.withType(JavaCompile) {
//options.compilerArgs << '-Xlint:unchecked'
//options.deprecation = true
}
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}

0 comments on commit 37b71b8

Please sign in to comment.