diff --git a/dev/a11y_assessments/README.md b/dev/a11y_assessments/README.md index 1f8a64cafb9..b6400496adc 100644 --- a/dev/a11y_assessments/README.md +++ b/dev/a11y_assessments/README.md @@ -1,3 +1,33 @@ # a11y_assessments -An application to conduct accessibility assessments. +This app is used for internal testing. + +## Release a new version for Android + +pre-requisite: This can and should only be done by a googler and you must also +be in the flutter.dev play console account. + +1. Follow https://docs.flutter.dev/deployment/android to create a keystore file if you don't already +have one. + +2. Bump the pubspec.yaml version + +3. Create a key.properties file in `android/` directory following this format. +``` +storePassword= +keyPassword= +keyAlias=upload +storeFile= +``` + +4. Run `flutter build appbundle` and upload the artifact to play console + +## Release a new version for iOS + +pre-requisite: This can and should only be done by a googler and you must also +be in the FLUTTER.IO LLC developer account with iOS distribution permission. + +1. Bump the pubspec.yaml version +2. Run `flutter build ipa` and upload the artifact to app store using transporter or other tools. +For more information, see https://docs.flutter.dev/deployment/ios. +3. Once the app is in TestFlight, add appropriate testers to the app so they can start testing. \ No newline at end of file diff --git a/dev/a11y_assessments/android/app/build.gradle b/dev/a11y_assessments/android/app/build.gradle index 0e6fab99fbf..c9116634236 100644 --- a/dev/a11y_assessments/android/app/build.gradle +++ b/dev/a11y_assessments/android/app/build.gradle @@ -26,6 +26,12 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } +def keystoreProperties = new Properties() +def keystorePropertiesFile = rootProject.file('key.properties') +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) +} + android { namespace "com.example.a11y_assessments" compileSdk flutter.compileSdkVersion @@ -54,12 +60,20 @@ android { versionCode flutterVersionCode.toInteger() versionName flutterVersionName } + signingConfigs { + release { + keyAlias keystoreProperties['keyAlias'] + keyPassword keystoreProperties['keyPassword'] + storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null + storePassword keystoreProperties['storePassword'] + } + } buildTypes { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug + signingConfig signingConfigs.release } } } diff --git a/dev/a11y_assessments/pubspec.yaml b/dev/a11y_assessments/pubspec.yaml index 26e431312ed..880126a5482 100644 --- a/dev/a11y_assessments/pubspec.yaml +++ b/dev/a11y_assessments/pubspec.yaml @@ -1,5 +1,6 @@ name: a11y_assessments description: A new Flutter project +version: 5.0.0+5 environment: sdk: '>=3.2.0-22.0.dev <4.0.0'