Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions flutter_ci_script_beta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ declare -a CODELABS=(
"firebase-auth-flutterfire-ui"
"firebase-get-to-know-flutter"
"generate_crossword"
"genui_intro"
"google-maps-in-flutter"
"haiku_generator"
"homescreen_codelab"
Expand Down
1 change: 1 addition & 0 deletions flutter_ci_script_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ declare -a CODELABS=(
"firebase-auth-flutterfire-ui"
"firebase-get-to-know-flutter"
"generate_crossword"
"genui_intro"
"google-maps-in-flutter"
"haiku_generator"
"homescreen_codelab"
Expand Down
1 change: 1 addition & 0 deletions flutter_ci_script_stable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ declare -a CODELABS=(
"firebase-auth-flutterfire-ui"
"firebase-get-to-know-flutter"
"generate_crossword"
"genui_intro"
"google-maps-in-flutter"
"haiku_generator"
"homescreen_codelab"
Expand Down
45 changes: 45 additions & 0 deletions genui-intro/step_03/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/
/coverage/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
3 changes: 3 additions & 0 deletions genui-intro/step_03/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# intro_to_genui

A new Flutter project.
1 change: 1 addition & 0 deletions genui-intro/step_03/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: package:flutter_lints/flutter.yaml
14 changes: 14 additions & 0 deletions genui-intro/step_03/android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
.cxx/

# Remember to never publicly share your keystore.
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks
47 changes: 47 additions & 0 deletions genui-intro/step_03/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
plugins {
id("com.android.application")
// START: FlutterFire Configuration
id("com.google.gms.google-services")
// END: FlutterFire Configuration
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}

android {
namespace = "com.example.intro_to_genui"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.intro_to_genui"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}

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.getByName("debug")
}
}
}

flutter {
source = "../.."
}
162 changes: 162 additions & 0 deletions genui-intro/step_03/android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
{
"project_info": {
"project_number": "174743616791",
"project_id": "crossword-agent-8fad1",
"storage_bucket": "crossword-agent-8fad1.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:174743616791:android:70194c2c65c5d963d90b52",
"android_client_info": {
"package_name": "com.example.crossword_agent"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:174743616791:android:73daf9ff3bfdb877d90b52",
"android_client_info": {
"package_name": "com.example.crossword_companion"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:174743616791:android:c01ee20d9e880dddd90b52",
"android_client_info": {
"package_name": "com.example.flutter_crossword_companion"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:174743616791:android:f47d5f7c7393beb8d90b52",
"android_client_info": {
"package_name": "com.example.flutter_firebase_ai_sample"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:174743616791:android:e6315d2cf9550002d90b52",
"android_client_info": {
"package_name": "com.example.intro_to_genui"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:174743616791:android:008bba1bbd753fdad90b52",
"android_client_info": {
"package_name": "com.example.just_today"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:174743616791:android:33df9a5dc398e71dd90b52",
"android_client_info": {
"package_name": "com.example.nine_demo"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:174743616791:android:7e4f5c85bb2f9e3dd90b52",
"android_client_info": {
"package_name": "com.example.workout_buddy"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDgtoLCjFR3f9CVbH8BdWe4bcFgmVk5z1E"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
7 changes: 7 additions & 0 deletions genui-intro/step_03/android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
45 changes: 45 additions & 0 deletions genui-intro/step_03/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="intro_to_genui"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.

In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
</queries>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example.intro_to_genui

import io.flutter.embedding.android.FlutterActivity

class MainActivity : FlutterActivity()
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />

<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />

<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading