Skip to content

Commit 3d74b0b

Browse files
authored
Adds a11y assessment sample app (#131716)
This app will be use for a11y assessments. See [design doc](http://go/flutter-gar-reporting-q3-2023) (internal only)
1 parent 22f029e commit 3d74b0b

File tree

124 files changed

+4656
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+4656
-0
lines changed

dev/a11y_assessments/.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
**/ios/Flutter/.last_build_id
27+
.dart_tool/
28+
.flutter-plugins
29+
.flutter-plugins-dependencies
30+
.packages
31+
.pub-cache/
32+
.pub/
33+
/build/
34+
35+
# Symbolication related
36+
app.*.symbols
37+
38+
# Obfuscation related
39+
app.*.map.json
40+
41+
# Android Studio will place build artifacts here
42+
/android/app/debug
43+
/android/app/profile
44+
/android/app/release

dev/a11y_assessments/.metadata

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'

dev/a11y_assessments/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# a11y_assessments
2+
3+
An application to conduct accessibility assessments.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: ../../analysis_options.yaml
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties
12+
**/*.keystore
13+
**/*.jks
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// Copyright 2014 The Flutter Authors. All rights reserved.
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 "kotlin-android"
8+
id "dev.flutter.flutter-gradle-plugin"
9+
}
10+
11+
def localProperties = new Properties()
12+
def localPropertiesFile = rootProject.file('local.properties')
13+
if (localPropertiesFile.exists()) {
14+
localPropertiesFile.withReader('UTF-8') { reader ->
15+
localProperties.load(reader)
16+
}
17+
}
18+
19+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
20+
if (flutterVersionCode == null) {
21+
flutterVersionCode = '1'
22+
}
23+
24+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
25+
if (flutterVersionName == null) {
26+
flutterVersionName = '1.0'
27+
}
28+
29+
android {
30+
namespace "com.example.a11y_assessments"
31+
compileSdkVersion flutter.compileSdkVersion
32+
ndkVersion flutter.ndkVersion
33+
34+
compileOptions {
35+
sourceCompatibility JavaVersion.VERSION_1_8
36+
targetCompatibility JavaVersion.VERSION_1_8
37+
}
38+
39+
kotlinOptions {
40+
jvmTarget = '1.8'
41+
}
42+
43+
sourceSets {
44+
main.java.srcDirs += 'src/main/kotlin'
45+
}
46+
47+
defaultConfig {
48+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
49+
applicationId "com.example.a11y_assessments"
50+
// You can update the following values to match your application needs.
51+
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
52+
minSdkVersion flutter.minSdkVersion
53+
targetSdkVersion flutter.targetSdkVersion
54+
versionCode flutterVersionCode.toInteger()
55+
versionName flutterVersionName
56+
}
57+
58+
buildTypes {
59+
release {
60+
// TODO: Add your own signing config for the release build.
61+
// Signing with the debug keys for now, so `flutter run --release` works.
62+
signingConfig signingConfigs.debug
63+
}
64+
}
65+
}
66+
67+
flutter {
68+
source '../..'
69+
}
70+
71+
dependencies {}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Copyright 2014 The Flutter Authors. All rights reserved.
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 2014 The Flutter Authors. All rights reserved.
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>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.example.a11y_assessments
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity: FlutterActivity() {
6+
}
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 2014 The Flutter Authors. All rights reserved.
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)