diff --git a/fastlane/Fastfile b/fastlane/Fastfile index c51cee2..b9a445b 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -28,6 +28,13 @@ desc "Build the apk" lane :build do gradle(task: "clean assemble") + increment_version_code( + #code_num: 9, + var_name: "versionCode|versionBuild", + #var_name: "AI_VERSION_CODE", + #file: "app/version.properties", + verbose: true, + ) end desc "Build and deploy the apk for Alpha testing in Google Play store" @@ -35,15 +42,23 @@ gradle( task: "clean assemble", build_type: 'Release', - properties: { - 'versionCode' => 5, - 'versionName' => "0.0.1.5" - } +# properties: { +# 'versionCode' => 7, +# 'versionName' => "0.0.1.7" +# } ) supply( apk: 'app/build/outputs/apk/app-release.apk', track: 'alpha' ) + # Now tag the current released app +# tag_svn_url = sh("printf #{ENV['SVN_URL']} | sed 's@trunk@tags/build_#{version}-#{build_number}@' | tr -d '\n'") +# tag_svn_message = "Release build " + version + "-" + build_number +# sh("svn copy #{ENV['SVN_URL']} #{tag_svn_url} -m '#{tag_svn_message}'") + # Revert the local changes (badge changes should NOT be committed) +# sh("cd .. && svn revert -R .") + # Increase the build number to be committed. + end desc "Submit a new Beta Build to Crashlytics Beta"