Skip to content

Commit 9af9c60

Browse files
authored
[material_ui] Copies a11y_assessments (#12686)
as title. Move the app in material gives us benefit that we can both fix accessibility issue and verify the fix on the app faster without waiting for a release cycle ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 103a3bd commit 9af9c60

216 files changed

Lines changed: 10467 additions & 6 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# The test_apps/ directory is for package developer use only and should not be published.
2+
*
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "b9c3f1f74c075a1766fd74418b5d79f528cf8c74"
8+
channel: "master"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
17+
base_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
18+
- platform: android
19+
create_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
20+
base_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
21+
- platform: ios
22+
create_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
23+
base_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
24+
- platform: linux
25+
create_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
26+
base_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
27+
- platform: macos
28+
create_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
29+
base_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
30+
- platform: web
31+
create_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
32+
base_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
33+
- platform: windows
34+
create_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
35+
base_revision: b9c3f1f74c075a1766fd74418b5d79f528cf8c74
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# a11y_assessments
2+
3+
This app is used for internal testing.
4+
5+
## Release a new version for Android
6+
7+
pre-requisite: This can and should only be done by a googler and you must also
8+
be in the flutter.dev play console account.
9+
10+
1. Follow https://docs.flutter.dev/deployment/android to create a keystore file if you don't already
11+
have one.
12+
13+
2. Bump the pubspec.yaml version
14+
15+
3. Create a key.properties file in `android/` directory following this format.
16+
```
17+
storePassword=<password>
18+
keyPassword=<password>
19+
keyAlias=upload
20+
storeFile=<keystore path>
21+
```
22+
23+
4. Run `flutter build appbundle` and upload the artifact to play console
24+
25+
## Release a new version for iOS
26+
27+
pre-requisite: This can and should only be done by a googler and you must also
28+
be in the FLUTTER.IO LLC developer account with iOS distribution permission.
29+
30+
1. Bump the pubspec.yaml version
31+
2. Run `flutter build ipa` and upload the artifact to app store using transporter or other tools.
32+
For more information, see https://docs.flutter.dev/deployment/ios.
33+
3. Once the app is in TestFlight, add appropriate testers to the app so they can start testing.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
analyzer:
2+
exclude:
3+
- build/**
4+
- android/**
5+
- ios/**
6+
- web/**
7+
- windows/**
8+
- macos/**
9+
- linux/**
10+
11+
include: ../../analysis_options.yaml
12+
13+
linter:
14+
rules:
15+
public_member_api_docs: false
16+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
.cxx/
9+
10+
# Remember to never publicly share your keystore.
11+
# See https://flutter.dev/to/reference-keystore
12+
key.properties
13+
**/*.keystore
14+
**/*.jks
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
// Copyright 2013 The Flutter Authors
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
plugins {
6+
id "com.android.application"
7+
id "dev.flutter.flutter-gradle-plugin"
8+
}
9+
10+
def localProperties = new Properties()
11+
def localPropertiesFile = rootProject.file('local.properties')
12+
if (localPropertiesFile.exists()) {
13+
localPropertiesFile.withReader('UTF-8') { reader ->
14+
localProperties.load(reader)
15+
}
16+
}
17+
18+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
19+
if (flutterVersionCode == null) {
20+
flutterVersionCode = '1'
21+
}
22+
23+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
24+
if (flutterVersionName == null) {
25+
flutterVersionName = '1.0'
26+
}
27+
28+
def keystoreProperties = new Properties()
29+
def keystorePropertiesFile = rootProject.file('key.properties')
30+
if (keystorePropertiesFile.exists()) {
31+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
32+
}
33+
34+
android {
35+
namespace = "com.example.a11y_assessments"
36+
compileSdk = flutter.compileSdkVersion
37+
ndkVersion = flutter.ndkVersion
38+
39+
compileOptions {
40+
sourceCompatibility = JavaVersion.VERSION_17
41+
targetCompatibility = JavaVersion.VERSION_17
42+
}
43+
44+
sourceSets {
45+
main.java.srcDirs += 'src/main/kotlin'
46+
}
47+
48+
defaultConfig {
49+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
50+
applicationId "dev.flutter.a11yassessments"
51+
// You can update the following values to match your application needs.
52+
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
53+
minSdk = flutter.minSdkVersion
54+
targetSdk = flutter.targetSdkVersion
55+
versionCode = flutterVersionCode.toInteger()
56+
versionName = flutterVersionName
57+
}
58+
signingConfigs {
59+
release {
60+
keyAlias keystoreProperties['keyAlias']
61+
keyPassword keystoreProperties['keyPassword']
62+
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
63+
storePassword keystoreProperties['storePassword']
64+
}
65+
}
66+
67+
buildTypes {
68+
release {
69+
// TODO: Add your own signing config for the release build.
70+
// Signing with the debug keys for now, so `flutter run --release` works.
71+
signingConfig = signingConfigs.release
72+
}
73+
}
74+
}
75+
76+
kotlin {
77+
compilerOptions {
78+
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
79+
}
80+
}
81+
82+
flutter {
83+
source = '../..'
84+
}
85+
86+
dependencies {}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Copyright 2013 The Flutter Authors
2+
Use of this source code is governed by a BSD-style license that can be
3+
found in the LICENSE file. -->
4+
5+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
6+
<!-- The INTERNET permission is required for development. Specifically,
7+
the Flutter tool needs it to communicate with the running application
8+
to allow setting breakpoints, to provide hot reload, etc.
9+
-->
10+
<uses-permission android:name="android.permission.INTERNET"/>
11+
</manifest>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!-- Copyright 2013 The Flutter Authors
2+
Use of this source code is governed by a BSD-style license that can be
3+
found in the LICENSE file. -->
4+
5+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
6+
<application
7+
android:label="a11y_assessments"
8+
android:name="${applicationName}"
9+
android:icon="@mipmap/ic_launcher">
10+
<activity
11+
android:name=".MainActivity"
12+
android:exported="true"
13+
android:launchMode="singleTop"
14+
android:theme="@style/LaunchTheme"
15+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
16+
android:hardwareAccelerated="true"
17+
android:windowSoftInputMode="adjustResize">
18+
<!-- Specifies an Android theme to apply to this Activity as soon as
19+
the Android process has started. This theme is visible to the user
20+
while the Flutter UI initializes. After that, this theme continues
21+
to determine the Window background behind the Flutter UI. -->
22+
<meta-data
23+
android:name="io.flutter.embedding.android.NormalTheme"
24+
android:resource="@style/NormalTheme"
25+
/>
26+
<intent-filter>
27+
<action android:name="android.intent.action.MAIN"/>
28+
<category android:name="android.intent.category.LAUNCHER"/>
29+
</intent-filter>
30+
</activity>
31+
<!-- Don't delete the meta-data below.
32+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
33+
<meta-data
34+
android:name="flutterEmbedding"
35+
android:value="2" />
36+
</application>
37+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright 2013 The Flutter Authors
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
package com.example.a11y_assessments
6+
7+
import io.flutter.embedding.android.FlutterActivity
8+
9+
class MainActivity : FlutterActivity()
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright 2013 The Flutter Authors
3+
Use of this source code is governed by a BSD-style license that can be
4+
found in the LICENSE file. -->
5+
6+
<!-- Modify this file to customize your launch splash screen -->
7+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
8+
<item android:drawable="?android:colorBackground" />
9+
10+
<!-- You can insert your own image assets here -->
11+
<!-- <item>
12+
<bitmap
13+
android:gravity="center"
14+
android:src="@mipmap/launch_image" />
15+
</item> -->
16+
</layer-list>

0 commit comments

Comments
 (0)