Skip to content
Merged
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
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ android {
def propertiesPath = "${staticConfigPath}/ddg_android_build.properties"
def propertiesFile = new File(propertiesPath)
if (propertiesFile.exists()) {
println "Signing properties found"
def props = new Properties()
props.load(new FileInputStream(propertiesFile))
android.signingConfigs.release.storeFile = file("${staticConfigPath}/${props['key.store']}")
Expand Down
2 changes: 1 addition & 1 deletion fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
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
package_name("com.duckduckgo.mobile.android") # e.g. com.krausefx.app
14 changes: 13 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ default_platform(:android)

platform :android do

desc "Upload APK to Play Store"
lane :deploy_playstore do

props = property_file_read(file: "app/version/version.properties")
version = props["VERSION"]
apkPath = "app/build/outputs/apk/release/duckduckgo-#{version}-release.apk"

upload_to_play_store(
apk: apkPath,
track: 'internal'
)
end

desc "Deploy APK to GitHub"
lane :deploy_github do

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


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")
UI.success "Creating release branch for release/#{newVersion}"

Expand Down
2 changes: 1 addition & 1 deletion fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Install _fastlane_ using
```
[sudo] gem install fastlane -NV
```
or alternatively using `brew cask install fastlane`
or alternatively using `brew install fastlane`

# Available Actions
## Android
Expand Down
1 change: 1 addition & 0 deletions versioning.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ ext {
file("version/version.properties").withInputStream { props.load(it) }
return props.getProperty("VERSION")
}

}