1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-27 10:15:00 +02:00

added fastlane support and gradle signing feature

This commit is contained in:
oliexdev
2020-04-28 21:49:11 +02:00
parent 62066724aa
commit 4dcfd19f2c
50 changed files with 556 additions and 11 deletions

View File

@@ -1,5 +1,17 @@
apply plugin: 'com.android.application'
def keystorePropertiesFile = rootProject.file("../../openScale.keystore")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
def keystoreLightPropertiesFile = rootProject.file("../../openScale_light.keystore")
def keystoreLightProperties = new Properties()
keystoreLightProperties.load(new FileInputStream(keystoreLightPropertiesFile))
def keystoreProPropertiesFile = rootProject.file("../../openScale_pro.keystore")
def keystoreProProperties = new Properties()
keystoreProProperties.load(new FileInputStream(keystoreProPropertiesFile))
android {
compileSdkVersion 29
defaultConfig {
@@ -29,10 +41,35 @@ android {
lintOptions {
abortOnError false
}
signingConfigs {
release {
storeFile file(rootDir.getCanonicalPath() + '/' + keystoreProperties['releaseKeyStore'])
keyAlias keystoreProperties['releaseKeyAlias']
keyPassword keystoreProperties['releaseKeyPassword']
storePassword keystoreProperties['releaseStorePassword']
}
light {
storeFile file(rootDir.getCanonicalPath() + '/' + keystoreLightProperties['releaseKeyStore'])
keyAlias keystoreLightProperties['releaseKeyAlias']
keyPassword keystoreLightProperties['releaseKeyPassword']
storePassword keystoreLightProperties['releaseStorePassword']
}
pro {
storeFile file(rootDir.getCanonicalPath() + '/' + keystoreProProperties['releaseKeyStore'])
keyAlias keystoreProProperties['releaseKeyAlias']
keyPassword keystoreProProperties['releaseKeyPassword']
storePassword keystoreProProperties['releaseStorePassword']
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
signingConfig signingConfigs.release
}
light {
manifestPlaceholders = [
@@ -42,6 +79,7 @@ android {
versionNameSuffix "-light"
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
signingConfig signingConfigs.light
}
pro {
manifestPlaceholders = [
@@ -51,6 +89,7 @@ android {
versionNameSuffix "-pro"
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
signingConfig signingConfigs.pro
}
}
compileOptions {
@@ -60,7 +99,7 @@ android {
}
dependencies {
implementation 'com.google.android.material:material:1.2.0-alpha03'
implementation 'com.google.android.material:material:1.2.0-alpha06'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
@@ -69,16 +108,16 @@ dependencies {
// Simple CSV
implementation 'com.j256.simplecsv:simplecsv:2.3'
// Blessed Android
implementation 'com.github.weliem:blessed-android:1.2'
implementation 'com.github.weliem:blessed-android:1.15'
// CustomActivityOnCrash
implementation 'cat.ereza:customactivityoncrash:2.2.0'
// AppIntro
implementation 'com.github.AppIntro:AppIntro:6.0.0-alpha3'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.50'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.71'
// Room
implementation 'androidx.room:room-runtime:2.2.3'
annotationProcessor 'androidx.room:room-compiler:2.2.3'
androidTestImplementation 'androidx.room:room-testing:2.2.3'
implementation 'androidx.room:room-runtime:2.2.5'
annotationProcessor 'androidx.room:room-compiler:2.2.5'
androidTestImplementation 'androidx.room:room-testing:2.2.5'
// Timber
implementation 'com.jakewharton.timber:timber:4.7.1'
// Local unit tests

View File

@@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.android.tools.build:gradle:3.6.3'
}
}

View File

@@ -1,6 +1,6 @@
#Sat Sep 28 10:19:36 CEST 2019
#Sun Apr 05 15:10:31 CEST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip