Skip to content

Commit 19e1067

Browse files
authored
Added GenUI codelab (#2385)
1 parent 36a8d72 commit 19e1067

674 files changed

Lines changed: 26981 additions & 0 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.

flutter_ci_script_beta.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ declare -a CODELABS=(
1515
"firebase-auth-flutterfire-ui"
1616
"firebase-get-to-know-flutter"
1717
"generate_crossword"
18+
"genui_intro"
1819
"google-maps-in-flutter"
1920
"haiku_generator"
2021
"homescreen_codelab"

flutter_ci_script_main.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ declare -a CODELABS=(
1515
"firebase-auth-flutterfire-ui"
1616
"firebase-get-to-know-flutter"
1717
"generate_crossword"
18+
"genui_intro"
1819
"google-maps-in-flutter"
1920
"haiku_generator"
2021
"homescreen_codelab"

flutter_ci_script_stable.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ declare -a CODELABS=(
1515
"firebase-auth-flutterfire-ui"
1616
"firebase-get-to-know-flutter"
1717
"generate_crossword"
18+
"genui_intro"
1819
"google-maps-in-flutter"
1920
"haiku_generator"
2021
"homescreen_codelab"

genui-intro/step_03/.gitignore

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

genui-intro/step_03/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# intro_to_genui
2+
3+
A new Flutter project.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:flutter_lints/flutter.yaml
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: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
plugins {
2+
id("com.android.application")
3+
// START: FlutterFire Configuration
4+
id("com.google.gms.google-services")
5+
// END: FlutterFire Configuration
6+
id("kotlin-android")
7+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
8+
id("dev.flutter.flutter-gradle-plugin")
9+
}
10+
11+
android {
12+
namespace = "com.example.intro_to_genui"
13+
compileSdk = flutter.compileSdkVersion
14+
ndkVersion = flutter.ndkVersion
15+
16+
compileOptions {
17+
sourceCompatibility = JavaVersion.VERSION_17
18+
targetCompatibility = JavaVersion.VERSION_17
19+
}
20+
21+
kotlinOptions {
22+
jvmTarget = JavaVersion.VERSION_17.toString()
23+
}
24+
25+
defaultConfig {
26+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
27+
applicationId = "com.example.intro_to_genui"
28+
// You can update the following values to match your application needs.
29+
// For more information, see: https://flutter.dev/to/review-gradle-config.
30+
minSdk = flutter.minSdkVersion
31+
targetSdk = flutter.targetSdkVersion
32+
versionCode = flutter.versionCode
33+
versionName = flutter.versionName
34+
}
35+
36+
buildTypes {
37+
release {
38+
// TODO: Add your own signing config for the release build.
39+
// Signing with the debug keys for now, so `flutter run --release` works.
40+
signingConfig = signingConfigs.getByName("debug")
41+
}
42+
}
43+
}
44+
45+
flutter {
46+
source = "../.."
47+
}
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
{
2+
"project_info": {
3+
"project_number": "174743616791",
4+
"project_id": "crossword-agent-8fad1",
5+
"storage_bucket": "crossword-agent-8fad1.firebasestorage.app"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:174743616791:android:70194c2c65c5d963d90b52",
11+
"android_client_info": {
12+
"package_name": "com.example.crossword_agent"
13+
}
14+
},
15+
"oauth_client": [],
16+
"api_key": [
17+
{
18+
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
19+
}
20+
],
21+
"services": {
22+
"appinvite_service": {
23+
"other_platform_oauth_client": []
24+
}
25+
}
26+
},
27+
{
28+
"client_info": {
29+
"mobilesdk_app_id": "1:174743616791:android:73daf9ff3bfdb877d90b52",
30+
"android_client_info": {
31+
"package_name": "com.example.crossword_companion"
32+
}
33+
},
34+
"oauth_client": [],
35+
"api_key": [
36+
{
37+
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
38+
}
39+
],
40+
"services": {
41+
"appinvite_service": {
42+
"other_platform_oauth_client": []
43+
}
44+
}
45+
},
46+
{
47+
"client_info": {
48+
"mobilesdk_app_id": "1:174743616791:android:c01ee20d9e880dddd90b52",
49+
"android_client_info": {
50+
"package_name": "com.example.flutter_crossword_companion"
51+
}
52+
},
53+
"oauth_client": [],
54+
"api_key": [
55+
{
56+
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
57+
}
58+
],
59+
"services": {
60+
"appinvite_service": {
61+
"other_platform_oauth_client": []
62+
}
63+
}
64+
},
65+
{
66+
"client_info": {
67+
"mobilesdk_app_id": "1:174743616791:android:f47d5f7c7393beb8d90b52",
68+
"android_client_info": {
69+
"package_name": "com.example.flutter_firebase_ai_sample"
70+
}
71+
},
72+
"oauth_client": [],
73+
"api_key": [
74+
{
75+
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
76+
}
77+
],
78+
"services": {
79+
"appinvite_service": {
80+
"other_platform_oauth_client": []
81+
}
82+
}
83+
},
84+
{
85+
"client_info": {
86+
"mobilesdk_app_id": "1:174743616791:android:e6315d2cf9550002d90b52",
87+
"android_client_info": {
88+
"package_name": "com.example.intro_to_genui"
89+
}
90+
},
91+
"oauth_client": [],
92+
"api_key": [
93+
{
94+
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
95+
}
96+
],
97+
"services": {
98+
"appinvite_service": {
99+
"other_platform_oauth_client": []
100+
}
101+
}
102+
},
103+
{
104+
"client_info": {
105+
"mobilesdk_app_id": "1:174743616791:android:008bba1bbd753fdad90b52",
106+
"android_client_info": {
107+
"package_name": "com.example.just_today"
108+
}
109+
},
110+
"oauth_client": [],
111+
"api_key": [
112+
{
113+
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
114+
}
115+
],
116+
"services": {
117+
"appinvite_service": {
118+
"other_platform_oauth_client": []
119+
}
120+
}
121+
},
122+
{
123+
"client_info": {
124+
"mobilesdk_app_id": "1:174743616791:android:33df9a5dc398e71dd90b52",
125+
"android_client_info": {
126+
"package_name": "com.example.nine_demo"
127+
}
128+
},
129+
"oauth_client": [],
130+
"api_key": [
131+
{
132+
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
133+
}
134+
],
135+
"services": {
136+
"appinvite_service": {
137+
"other_platform_oauth_client": []
138+
}
139+
}
140+
},
141+
{
142+
"client_info": {
143+
"mobilesdk_app_id": "1:174743616791:android:7e4f5c85bb2f9e3dd90b52",
144+
"android_client_info": {
145+
"package_name": "com.example.workout_buddy"
146+
}
147+
},
148+
"oauth_client": [],
149+
"api_key": [
150+
{
151+
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
152+
}
153+
],
154+
"services": {
155+
"appinvite_service": {
156+
"other_platform_oauth_client": []
157+
}
158+
}
159+
}
160+
],
161+
"configuration_version": "1"
162+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<!-- The INTERNET permission is required for development. Specifically,
3+
the Flutter tool needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>

0 commit comments

Comments
 (0)