Add sample app signing (also ignore in CI)

This commit is contained in:
Dimitry Ivanov 2020-07-16 16:32:09 +03:00
parent a330b57be8
commit 11bec3d37e
5 changed files with 20 additions and 6 deletions

View File

@ -15,4 +15,4 @@ jobs:
with: with:
java-version: 1.8 java-version: 1.8
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew build -Prelease run: ./gradlew build -Prelease -PCI

View File

@ -14,4 +14,4 @@ jobs:
with: with:
java-version: 1.8 java-version: 1.8
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew build run: ./gradlew build -PCI

View File

@ -1,6 +1,6 @@
# Changelog # Changelog
# $SNAPSHOT; # SNAPSHOT
#### Added #### Added
* `core` - `MovementMethodPlugin.none()`, `MovementMethodPlugin.link()` factory methods * `core` - `MovementMethodPlugin.none()`, `MovementMethodPlugin.link()` factory methods

View File

@ -57,6 +57,11 @@ android {
signingConfigs { signingConfigs {
config { config {
// skip signing in CI environment
if (project.hasProperty('CI')) {
return
}
final def keystoreFile = project.file('keystore.jks') final def keystoreFile = project.file('keystore.jks')
final def keystoreFilePassword = 'MARKWON_KEYSTORE_FILE_PASSWORD' final def keystoreFilePassword = 'MARKWON_KEYSTORE_FILE_PASSWORD'
final def keystoreAlias = 'MARKWON_KEY_ALIAS' final def keystoreAlias = 'MARKWON_KEY_ALIAS'
@ -84,6 +89,15 @@ android {
keyPassword project[keystoreAliasPassword] keyPassword project[keystoreAliasPassword]
} }
} }
buildTypes {
debug {
signingConfig signingConfigs.config
}
release {
signingConfig signingConfigs.config
}
}
} }
kapt { kapt {

View File

@ -6,8 +6,8 @@ buildscript {
} }
dependencies { dependencies {
// on `3.5.3` tests are not run from CLI // on `3.5.3` tests are not run from CLI
classpath 'com.android.tools.build:gradle:4.0.0' classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.27.0' classpath 'com.github.ben-manes:gradle-versions-plugin:0.28.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
} }
} }
@ -35,7 +35,7 @@ task clean(type: Delete) {
} }
wrapper { wrapper {
gradleVersion '5.5.1' gradleVersion '6.1.1'
distributionType 'all' distributionType 'all'
} }