diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 9639ae8f1..3e75066bf 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -45,10 +45,10 @@ platform :android do lane :release do # Gather data package_name = CredentialsManager::AppfileConfig.try_fetch_value(:package_name) - android_get_version_code() - version_code = lane_context[SharedValues::ANDROID_VERSION_CODE] - android_get_version_name() - version_name = lane_context[SharedValues::ANDROID_VERSION_NAME] + version_name = get_version_name(app_project_dir: '**/app') + UI.message("version_name: " + version_name) + version_code = get_version_code(app_project_dir: '**/app') + UI.message("version_code: " + version_code) # Get changelog changelog = File.read("metadata/android/en-US/changelogs/#{version_code}.txt") diff --git a/fastlane/Pluginfile b/fastlane/Pluginfile index 052b09059..68498fa51 100644 --- a/fastlane/Pluginfile +++ b/fastlane/Pluginfile @@ -2,4 +2,4 @@ # # Ensure this file is checked in to source control! -gem 'fastlane-plugin-versioning_android' +gem 'fastlane-plugin-android_versioning'