Skip to content

Commit

Permalink
Bump new release for a11y_assessment (#150213)
Browse files Browse the repository at this point in the history
  • Loading branch information
chunhtai authored Jun 13, 2024
1 parent 03b595e commit 1330675
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
32 changes: 31 additions & 1 deletion dev/a11y_assessments/README.md
Original file line number Diff line number Diff line change
@@ -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=<password>
keyPassword=<password>
keyAlias=upload
storeFile=<keystore path>
```

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.
16 changes: 15 additions & 1 deletion dev/a11y_assessments/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
}
}
Expand Down
1 change: 1 addition & 0 deletions dev/a11y_assessments/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 1330675

Please sign in to comment.