Bump new release for a11y_assessment (#150213)

This commit is contained in:
chunhtai 2024-06-13 13:27:23 -07:00 committed by GitHub
parent 03b595e9cf
commit 133067552d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 47 additions and 2 deletions

View File

@ -1,3 +1,33 @@
# a11y_assessments # 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.

View File

@ -26,6 +26,12 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0' flutterVersionName = '1.0'
} }
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android { android {
namespace "com.example.a11y_assessments" namespace "com.example.a11y_assessments"
compileSdk flutter.compileSdkVersion compileSdk flutter.compileSdkVersion
@ -54,12 +60,20 @@ android {
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName
} }
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes { buildTypes {
release { release {
// TODO: Add your own signing config for the release build. // TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works. // Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug signingConfig signingConfigs.release
} }
} }
} }

View File

@ -1,5 +1,6 @@
name: a11y_assessments name: a11y_assessments
description: A new Flutter project description: A new Flutter project
version: 5.0.0+5
environment: environment:
sdk: '>=3.2.0-22.0.dev <4.0.0' sdk: '>=3.2.0-22.0.dev <4.0.0'