作成中
Track | Azure Pipeline | Google Play Url |
---|---|---|
Production | N/A | N/A |
Beta | N/A | N/A |
Alpha | N/A | N/A |
Internal | Secret |
- Make directory
{ROOT}/Secure
- Create empty file
{ROOT}/Secure/google-play-service-account-key.json
- Create empty file
{ROOT}/Secure/google-play-upload-key.jks
- Create file
{ROOT}/Secure/signing.gradle
content:
signingConfigs {
release { }
}
- Create file
{ROOT}/Secure/version.gradle
content:
ext {
instantVersionCode = 1
installedVersionCode = 2
versionNamePostfix = 1
googlePlayTrack = "internal"
}
- Create file
{ROOT}/Secure/key.gradle
content:
ext {
gnaviApiKey = ""
}
- Build.
Key configuration locate {ROOT}/Secure/key.gradle
.
- Get
gnaviApiKey
in https://api.gnavi.co.jp/api/
First, clone repository.
important files:
.codeclimate.yml
azure-pipelines.yml
azure-pipelines-track-**.yml
build.gradle
configuration.gradle
app/build.gradle
Next, upload your repository to Github.
- Sign up Code Climate Quality using Github account
- Add Repository as a Open Source
- Go to repository settings
- Select Github
- Enable to
Pull request comments
,Inline issue comments
andPull request stats updates
policy:
- use Google Play App Signin
- enable Google Play Publisher API
- Make credential file in Android Studio, save to
{ROOT}/Secure/google-play-upload-key.jks
- Make signin setting file
{ROOT}/Secure/signing.gradle
content:
signingConfigs {
release {
storeFile file("../Secure/google-play-upload-key.jks")
storePassword "{YOUR_PASSWORD}"
keyAlias "{YOUR_ALIAS}"
keyPassword "{YOUR_PASSWORD}"
}
}
- Make first Android App Bundle file, example command:
gradlew bundleRelease
- Open Google Play Console
- Make new application
- Set all information of required settings
- Add first bundle file to target track, example:
internal
- Go to setting
- Select API access
- Enable link
Google Play Android Developer
- Create service account
- Download created service account key as a json, save to
{ROOT}/Secure/google-play-service-account-key.json
- Add permissions to created service account in Google Play Console settings
- Set up Azure Pipeline from Github Marketplace, make Azure Pipeline project
- Set up first pipeline from
azure-pipelines.yml
if added secure files, skip to 6
- Open pipeline's
Library
- Select Secure files
- Add
{ROOT}/Secure/google-play-service-account-key.json
- Add
{ROOT}/Secure/google-play-upload-key.jks
- Add
{ROOT}/Secure/signing.gradle
- Add
{ROOT}/Secure/key.gradle
- Create pipeline from
azure-pipelines-track-***.yml
- Open created pipeline, click
Edit
- Click
Edit in the visual designer
- Select Triggers, select Pull request validation
- Enable
Override YAML Pull Request trigger from here
- Check
Disable pull request validation
, this option mean is Security for guard from pull request attack - Save setting
when not download secure file, see that: https://stackoverflow.com/questions/53401927/vsts-anybody-managed-to-use-secure-file-in-azure-pipelines-yml/53488887
This application is published by MIT License
Build:
- Google Play Publisher, published by MIT License
Application:
- Kotlin Standard Library, published by Apache License v2
- kotlinx.coroutines, published by Apache License v2
- AndroidX, published by Apache License v2
- com.google.android.instantapps, published by Android Software Development Kit License Agreement
- Material Components, published by Apache License v2
- Moshi, published by Apache License v2
- OkHttp, published by Apache License v2
- Nachos, published by Apache License v2
- ShimmerLayout, published by Apache License v2
Test:
- junit4, published by Eclipse Public License v1
- Robolectric, published by MIT License