diff --git a/app/build.gradle b/app/build.gradle index 523c07b25fc7..489faf0ebeb2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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']}") diff --git a/fastlane/Appfile b/fastlane/Appfile index 14c2fd97125b..415d177e9d84 100644 --- a/fastlane/Appfile +++ b/fastlane/Appfile @@ -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 diff --git a/fastlane/Fastfile b/fastlane/Fastfile index ec31cfbc2140..5637444809c7 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -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 @@ -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}" diff --git a/fastlane/README.md b/fastlane/README.md index e175d02a8cd2..715a5e91e050 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -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 diff --git a/versioning.gradle b/versioning.gradle index 919c6923bbc7..5b56c09aa0fc 100644 --- a/versioning.gradle +++ b/versioning.gradle @@ -12,4 +12,5 @@ ext { file("version/version.properties").withInputStream { props.load(it) } return props.getProperty("VERSION") } + } \ No newline at end of file