Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitrise configuration #4

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## 1.0.12
* Changed gradle configuration to allow Bitrise Continuous Integration
21 changes: 19 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,39 @@ plugins {
}

android {
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

compileSdk 32

defaultConfig {
applicationId "com.minima.android"
minSdk 26
targetSdk 32
versionCode 14
versionName "1.0.11"
versionCode System.getenv("BITRISE_BUILD_NUMBER") ? Integer.parseInt(System.getenv("BITRISE_BUILD_NUMBER")) : 14
versionName "1.0.12"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

signingConfigs {
release {
keyAlias keystoreProperties['keyAlias'] ?: System.getenv("BITRISEIO_ANDROID_KEYSTORE_ALIAS")
keyPassword keystoreProperties['keyPassword'] ?: System.getenv("BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD")
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : (System.getenv("DOWNLOADED_KEYSTORE_PATH") ? file(System.getenv("BITRISE_SOURCE_DIR") + "/" + System.getenv("DOWNLOADED_KEYSTORE_PATH")) : null)
storePassword keystoreProperties['storePassword'] ?: System.getenv("BITRISEIO_ANDROID_KEYSTORE_PASSWORD")
}
}

buildTypes {
release {
minifyEnabled false
// TODO use proguard!
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
compileOptions {
Expand Down