Skip to content

Commit 2730793

Browse files
authored
Feature/david/fastlane release (#903)
* added reference to service account * added reference to service account file * udpated version for testing * added default release notes for all languages * using the proper default play store release notes for each language * script preparations for fastlane release * more work on the fastlane script, not quite there yet * removing metadata folder * added new lane so we can release to Play Store * rollback version change * cleanup unused gradle task * ktlint formatting * rollback line added
1 parent b973426 commit 2730793

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ android {
8383
def propertiesPath = "${staticConfigPath}/ddg_android_build.properties"
8484
def propertiesFile = new File(propertiesPath)
8585
if (propertiesFile.exists()) {
86-
println "Signing properties found"
8786
def props = new Properties()
8887
props.load(new FileInputStream(propertiesFile))
8988
android.signingConfigs.release.storeFile = file("${staticConfigPath}/${props['key.store']}")

fastlane/Appfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
1+
json_key_file("~/jenkins_static/com.duckduckgo.mobile.android/api.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
22
package_name("com.duckduckgo.mobile.android") # e.g. com.krausefx.app

fastlane/Fastfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ default_platform(:android)
1717

1818
platform :android do
1919

20+
desc "Upload APK to Play Store"
21+
lane :deploy_playstore do
22+
23+
props = property_file_read(file: "app/version/version.properties")
24+
version = props["VERSION"]
25+
apkPath = "app/build/outputs/apk/release/duckduckgo-#{version}-release.apk"
26+
27+
upload_to_play_store(
28+
apk: apkPath,
29+
track: 'internal'
30+
)
31+
end
32+
2033
desc "Deploy APK to GitHub"
2134
lane :deploy_github do
2235

@@ -66,7 +79,6 @@ platform :android do
6679
)
6780
UI.message ("Performing a new release for #{newVersion}")
6881

69-
7082
if UI.confirm("Are you sure you're happy with this release?\n\nVersion=#{newVersion}\nCommits Since Last Release:\n#{commits}\nRelease Notes:\n#{releaseNotes}\n")
7183
UI.success "Creating release branch for release/#{newVersion}"
7284

fastlane/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Install _fastlane_ using
1212
```
1313
[sudo] gem install fastlane -NV
1414
```
15-
or alternatively using `brew cask install fastlane`
15+
or alternatively using `brew install fastlane`
1616

1717
# Available Actions
1818
## Android

versioning.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ ext {
1212
file("version/version.properties").withInputStream { props.load(it) }
1313
return props.getProperty("VERSION")
1414
}
15+
1516
}

0 commit comments

Comments
 (0)