Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter template for Data Connect #23

Open
wants to merge 250 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
e876df7
Included flutter sample
maneesht Aug 27, 2024
30d2728
included idx-template.nix
maneesht Aug 27, 2024
71bf86e
Included file
maneesht Aug 27, 2024
17ca466
Fixed it
maneesht Aug 27, 2024
301a363
Removed references to email app
maneesht Aug 27, 2024
77fd2d7
Included graphql yaml file
maneesht Aug 27, 2024
82bc9d5
Added vscode folder
maneesht Aug 27, 2024
b3d8f90
Modified bootstrapping
maneesht Aug 27, 2024
463a1cc
Included data connect folder
maneesht Aug 27, 2024
b1beec6
Added new template
maneesht Aug 27, 2024
d7cac83
moved readme
maneesht Aug 27, 2024
300cdd2
Moved file
maneesht Aug 27, 2024
21782c3
Modified the nix script
maneesht Aug 27, 2024
58ba95d
Added downloads
maneesht Aug 27, 2024
a31c571
Updated nix to add proxy-web
maneesht Aug 27, 2024
31a9159
Updated files
maneesht Aug 27, 2024
2bdbcd0
Fixed trailing slash
maneesht Aug 27, 2024
b1cb1e0
Fixed download
maneesht Aug 27, 2024
13f46c2
Modified right file
maneesht Aug 27, 2024
abd0cff
Removed mkdir
maneesht Aug 27, 2024
a640aa9
Debug
maneesht Aug 27, 2024
1c30858
Removed unnecessary code
maneesht Aug 27, 2024
35cfff4
Create out dir
maneesht Aug 27, 2024
e2a1054
Updated todos
maneesht Aug 27, 2024
87ccbce
Fixes
maneesht Aug 27, 2024
1f60794
Moved file
maneesht Aug 27, 2024
1b8286e
Updated main.dart to include emulator line
maneesht Aug 29, 2024
4ec88a3
Consolidated setup steps
maneesht Aug 29, 2024
aa06b0d
Added lock file
maneesht Aug 29, 2024
b55b51b
Fixed issues in template
maneesht Aug 29, 2024
5a95fc9
Attempted to use prebuilt version of flutter
maneesht Aug 29, 2024
3a731d1
Included -r
maneesht Aug 29, 2024
dc6842b
Included mkdir
maneesht Aug 29, 2024
78c9f27
Modified idx template nix file
maneesht Aug 29, 2024
3f345be
Maybe fixed things
maneesht Aug 29, 2024
226b45f
Updated
maneesht Aug 29, 2024
a4581d8
Debugging
maneesht Aug 29, 2024
73946bc
Debugging
maneesht Aug 29, 2024
9a099fe
Move flutter
maneesht Aug 29, 2024
313e713
Hopefully fix everything
maneesht Aug 29, 2024
e0dc501
Hopefully fix everything part 2
maneesht Aug 29, 2024
1aeaec3
Hopefully fix everything part 3
maneesht Aug 30, 2024
6e86abc
Fourth time is the charm
maneesht Aug 30, 2024
a3bfce4
Really included file
maneesht Aug 30, 2024
a6567a3
Revert "Hopefully fix everything part 3"
maneesht Aug 30, 2024
ba32fee
Removed flutter file
maneesht Aug 30, 2024
8d2d9c0
Test
maneesht Aug 30, 2024
18b29a6
Deleted file
maneesht Aug 30, 2024
df3d88a
Really added flutter file?
maneesht Aug 30, 2024
ec04c36
Finished?
maneesht Aug 30, 2024
a141a5f
Cleanup
maneesht Aug 30, 2024
231b931
Fixed out dir
maneesht Aug 30, 2024
d603ed5
Another try
maneesht Aug 30, 2024
213f552
Optimizations
maneesht Aug 30, 2024
4d915fd
Moved setup to before
maneesht Aug 30, 2024
fb57ade
Fixed initdb
maneesht Aug 30, 2024
7dcd0c5
Fixed wget
maneesht Aug 30, 2024
729a0b1
added untar
maneesht Aug 30, 2024
85f899b
Updated dev.nix
maneesht Aug 30, 2024
bdbb467
Removed wget
maneesht Aug 30, 2024
a83b2f2
Revert version of nixpackages
maneesht Aug 30, 2024
336d7ed
Reverted to newer version of nixpkgs
maneesht Aug 30, 2024
a81715f
Used recommended flutter zip setup
maneesht Sep 3, 2024
a9b1140
Removed error
maneesht Sep 3, 2024
10874a8
Updated version of flutter
maneesht Sep 3, 2024
8e75d75
Updated empty hash
maneesht Sep 3, 2024
7639acf
Removed downloading of flutter sdk
maneesht Sep 4, 2024
13a4c6a
Changed emulator installation
maneesht Sep 4, 2024
c4ac204
Updated build.gradle to support an older version of flutter
maneesht Sep 4, 2024
2b4c951
Added back jdk
maneesht Sep 4, 2024
5388b6a
Removed dataconnect folder
maneesht Sep 4, 2024
58f31d8
Included proxy
maneesht Sep 4, 2024
873fced
Possibly fix pnpm
maneesht Sep 4, 2024
4f77bf4
Fixed errors
maneesht Sep 4, 2024
93077b2
Removed quotes
maneesht Sep 4, 2024
5b4d7b8
Removed onstart
maneesht Sep 4, 2024
fdc836d
Separated out pnpm run
maneesht Sep 4, 2024
5988df4
Included dpes
maneesht Sep 4, 2024
27be4c0
Added install deps script
maneesht Sep 4, 2024
46c9ae0
Updated install script
maneesht Sep 5, 2024
9bbb55c
Updated instructions
maneesht Sep 5, 2024
c7afcec
Fixed issues
maneesht Sep 5, 2024
7d49983
Added firebase_data_connect as pub dependency
maneesht Sep 18, 2024
3e4e019
Included hostname
maneesht Sep 18, 2024
5b1016a
Updated version
maneesht Sep 18, 2024
d5ac24a
Test
maneesht Sep 19, 2024
589c5b5
Changed correct dev.nix
maneesht Sep 19, 2024
f23b5a9
Replaced URL
maneesht Sep 19, 2024
eb2f457
Merge remote-tracking branch 'origin/main' into mtewani/flutter-template
maneesht Sep 30, 2024
a85ce19
Updated zip version
maneesht Sep 30, 2024
f558439
Updated template to accept projectId
maneesht Oct 1, 2024
746a0d7
Fixed template
maneesht Oct 1, 2024
50e6160
Fixed template
maneesht Oct 1, 2024
346630b
Fixed quotes
maneesht Oct 1, 2024
6f9f273
Added the firebase.json
maneesht Oct 1, 2024
5280dfb
Attempt to write to .env file
maneesht Oct 1, 2024
7ab54bb
Fixed quotes
maneesht Oct 1, 2024
93a4811
Added import
maneesht Oct 1, 2024
a527045
Added back exclamation point
maneesht Oct 1, 2024
019913c
Updated ports
maneesht Oct 1, 2024
711ea3b
Updated deps
maneesht Oct 1, 2024
bcfb76f
Another test
maneesht Oct 1, 2024
6f9a2e9
Moved up the download
maneesht Oct 1, 2024
38a22ae
Fix proxy
maneesht Oct 1, 2024
7b40557
Fix proxy
maneesht Oct 1, 2024
47c88bf
Included v1beta instead'
maneesht Oct 2, 2024
99e8d02
Updated host info
maneesht Oct 3, 2024
11cd1b4
Merge remote-tracking branch 'origin/main' into mtewani/flutter-template
maneesht Oct 3, 2024
cddcc87
first pass at adding to global dataconnect
maneesht Oct 3, 2024
a7f7697
Added flutter-blank
maneesht Oct 3, 2024
9ce00f6
Fixed first part
maneesht Oct 3, 2024
1ea6eee
Swapped dev.nix
maneesht Oct 4, 2024
dc4b1c4
Added back dev.nix
maneesht Oct 4, 2024
b14731c
Updated demo app
maneesht Oct 4, 2024
14d9651
Added firebase.json
maneesht Oct 4, 2024
72b3105
Renamed everything to blank
maneesht Oct 4, 2024
a1a668a
Removed change_package_app_name dep
maneesht Oct 4, 2024
ab963d6
Updated deps
maneesht Oct 4, 2024
34b414c
Added script
maneesht Oct 4, 2024
20c73a7
Fixed permissions
maneesht Oct 4, 2024
81df230
Ran re-auth
maneesht Oct 4, 2024
3655fcf
Updated correct script
maneesht Oct 4, 2024
1a3ed91
Renamed everything to blank
maneesht Oct 4, 2024
35fdbd3
Updated flutter blank dev.nix
maneesht Oct 4, 2024
386ea59
Updated flutter blank install deps
maneesht Oct 4, 2024
9f1ee17
Updated installdeps
maneesht Oct 4, 2024
3ce4752
Fix dev.nix
maneesht Oct 4, 2024
f2897dc
Handle proxy properly
maneesht Oct 4, 2024
2cfc730
Fix .env
maneesht Oct 4, 2024
7dcb210
Test
maneesht Oct 4, 2024
f3c7007
Updated start proxy
maneesht Oct 4, 2024
a582007
Updated proxy
maneesht Oct 4, 2024
c0c9d72
Made installDeps sticky
maneesht Oct 4, 2024
03f93d4
Updated script
maneesht Oct 4, 2024
a57d5ee
Updated script
maneesht Oct 4, 2024
3811152
Removed fab
maneesht Oct 4, 2024
e712aeb
Updated pnpm lock
maneesht Oct 4, 2024
f748adb
Fix issue with proxy
maneesht Oct 4, 2024
9edf5fd
Added flutter sh file
maneesht Oct 4, 2024
8b5085e
Updated template to remove firebase tools builtin
maneesht Oct 7, 2024
2ad55b7
Update firebase tools
maneesht Oct 7, 2024
e1856c0
Fixed auth
maneesht Oct 7, 2024
52277fb
Reverted firebase-cli changes
maneesht Oct 14, 2024
70def68
Updated dep
maneesht Oct 15, 2024
3d4e2a6
Proxy
maneesht Oct 17, 2024
db5ccf2
Used caddy for proxy
maneesht Oct 24, 2024
5ac5da4
Removed flutter create
maneesht Oct 24, 2024
59863f1
Included movie sample
maneesht Nov 5, 2024
fc49db4
Updtaed installdeps
maneesht Nov 5, 2024
2b93b24
Updated
maneesht Nov 5, 2024
ad5b03c
Another round of fixes
maneesht Nov 5, 2024
b1b1cff
Removed
maneesht Nov 5, 2024
58cf9dd
Added missing file
maneesht Nov 5, 2024
e9051c5
Added caddyfile
maneesht Nov 5, 2024
487a4d4
Removed login
maneesht Nov 6, 2024
934d80c
Attempt to refresh path cache
maneesht Nov 6, 2024
235b667
Attempt to refresh path cache
maneesht Nov 6, 2024
2ce8bab
Tried to update cache
maneesht Nov 6, 2024
71046ca
Updated script
maneesht Nov 6, 2024
69152d3
Updated installdeps to include pub get
maneesht Nov 6, 2024
de7c0db
Updated caddyfile
maneesht Nov 7, 2024
23e52d5
Updated logo icon
maneesht Nov 7, 2024
b7c7a44
Updated login
maneesht Nov 7, 2024
c35c8cb
Last commit
maneesht Nov 7, 2024
e1e86bf
Removed unnecessary config info
maneesht Nov 7, 2024
0621637
Updated height restrictions for movie detail
maneesht Nov 7, 2024
56a0f8d
Updated script
maneesht Nov 7, 2024
0ca3c2a
Updated default firebaserc's
maneesht Nov 7, 2024
e9d9c57
Updated script
maneesht Nov 7, 2024
7d480fc
Updated the checks
maneesht Nov 7, 2024
8ed62c7
Updated
maneesht Nov 7, 2024
0835a23
Updated scripts
maneesht Nov 8, 2024
e2ed13d
Updated installDeps to include correct package name
maneesht Nov 8, 2024
b29d59b
Fixed script
maneesht Nov 8, 2024
9d62601
Updated template to include error check for firebase_options.dart
maneesht Nov 8, 2024
b06739b
Updated template
maneesht Nov 8, 2024
e1253f8
Forgot a file
maneesht Nov 8, 2024
f4521b5
Added proper file
maneesht Nov 8, 2024
f397255
Fix
maneesht Nov 8, 2024
809233c
Test with install mode
maneesht Nov 8, 2024
bb7cbd6
Attempted to fix file issues
maneesht Nov 8, 2024
06af15b
Attempted to fix file issues
maneesht Nov 8, 2024
e3633c6
Updated files
maneesht Nov 8, 2024
a5e8480
Updated files
maneesht Nov 8, 2024
1479b02
Updated with open in new tab
maneesht Nov 8, 2024
e9a3caf
Changed width
maneesht Nov 8, 2024
ff98b6e
%s/plugin/extension
maneesht Nov 11, 2024
9363ca6
WIP
maneesht Nov 15, 2024
3c2fb9b
Updated quickstart sample
maneesht Nov 15, 2024
28fc3e3
removed google-services.json
maneesht Nov 15, 2024
12ecad8
Fixed installDeps error
maneesht Nov 15, 2024
661b757
Updated path strategy
maneesht Nov 15, 2024
7ac5a4f
Included rody's changes
maneesht Nov 16, 2024
deac885
Updated sign up message
maneesht Nov 16, 2024
c3bbe22
Updated to fix errors
maneesht Nov 18, 2024
8ef0765
Added asset
maneesht Nov 18, 2024
879e743
Add assets
maneesht Nov 18, 2024
45b06a6
Added auth dialog popup
maneesht Nov 18, 2024
62c5458
Addressed feedback
maneesht Nov 19, 2024
b8cfaea
Updated message
maneesht Nov 21, 2024
6fe2d9e
Updated
maneesht Nov 21, 2024
3ab78fd
Updated message
maneesht Nov 21, 2024
fc87dfd
Updated instructions again
maneesht Nov 21, 2024
f6690d7
Updated to new template type
maneesht Nov 21, 2024
e94e37e
Fixed missing comma
maneesht Nov 21, 2024
a857ca7
Fix variable definition
maneesht Nov 21, 2024
75a1bcc
Fix variable definition
maneesht Nov 21, 2024
d38052d
Fix logic
maneesht Nov 21, 2024
c16037e
More improvements
maneesht Nov 21, 2024
83a0a61
More improvements
maneesht Nov 21, 2024
e8e7e24
Attempt to cleanup code
maneesht Nov 21, 2024
9c235a5
Attempt to cleanup code
maneesht Nov 21, 2024
05765de
Added postgres support back
maneesht Nov 22, 2024
40f4e95
Enabled postgres
maneesht Nov 22, 2024
829a093
Updated pubspec.lock files
maneesht Nov 22, 2024
7b009ca
Addressed comments
maneesht Nov 26, 2024
c04fd4f
Removed call of installDeps
maneesht Nov 26, 2024
01b8879
Made sure data connect repo was empty
maneesht Dec 2, 2024
5774930
Revert "Made sure data connect repo was empty"
maneesht Dec 2, 2024
9b8c364
Added back firebase.json
maneesht Dec 2, 2024
6cb204c
Added back firebase.json
maneesht Dec 2, 2024
3b2d81c
Reapply "Made sure data connect repo was empty"
maneesht Dec 2, 2024
133c243
Revert "Made sure data connect repo was empty"
maneesht Dec 2, 2024
a79b1bb
Removed dataconnect folder entirely
maneesht Dec 2, 2024
828f63e
Created empty template
maneesht Dec 3, 2024
af1da7b
Removed options
maneesht Dec 3, 2024
b811a46
Copy readme
maneesht Dec 3, 2024
6779d02
Updated README instructions
maneesht Dec 3, 2024
383c086
Modified to remove unnecessary field
maneesht Dec 5, 2024
3cc7bbe
Updated list movies to use scroll direction
maneesht Dec 5, 2024
4de47e9
Updated coloring
maneesht Dec 5, 2024
163e099
Updated listmovie
maneesht Dec 5, 2024
504f8f5
Added displaymovie
maneesht Dec 5, 2024
1921643
Added horizontal movie
maneesht Dec 5, 2024
81eeeab
Added horizontal movie
maneesht Dec 5, 2024
79f65f5
Fixed sizing issues
maneesht Dec 5, 2024
2595c53
Fixed up files
maneesht Dec 5, 2024
986aca3
Used numbers instead of bullets
maneesht Dec 6, 2024
3bc2d38
Addressed concerns
maneesht Dec 6, 2024
0704f08
Addressed feedback
maneesht Dec 6, 2024
db708d5
Ignore generated files
maneesht Dec 6, 2024
e3edcfe
Fixed logic in idx template
maneesht Dec 9, 2024
6f59fc0
Updated nix files
maneesht Dec 9, 2024
ee36863
Test
maneesht Dec 9, 2024
73aa02f
Fix interpolation
maneesht Dec 9, 2024
10bd439
Fix interpolation
maneesht Dec 9, 2024
fc5efa9
Updated dev.nix for nextjs-movie-app
maneesht Dec 9, 2024
9b73966
Updated moviedata insert files
maneesht Dec 9, 2024
1873477
Updated README
maneesht Dec 10, 2024
b80d6d6
Updated with google services
maneesht Dec 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions dataconnect/.firebaserc
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
{
"projects": {
"default": "FIREBASE_PROJECT_ID_HERE"
"default": null
},
"targets": {},
"etags": {},
"dataconnectEmulatorConfig": {
"postgres": {
"localConnectionString": "postgresql://user:mypassword@localhost:5432/dataconnect?sslmode=disable"
}
}
"etags": {}
}
2 changes: 1 addition & 1 deletion dataconnect/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Firebase Data Connect

<a href="https://idx.google.com/new?template=https://github.com/project-idx/community-templates/tree/main/dataconnect">
<a href="https://idx.google.com/new?template=https://github.com/project-idx/community-templates/tree/mtewani-flutter-template/dataconnect">
<img height="32" alt="Try in IDX" src="https://cdn.idx.dev/btn/try_dark_32.svg">
</a>
43 changes: 43 additions & 0 deletions dataconnect/flutter-blank/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
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
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/

# 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
45 changes: 45 additions & 0 deletions dataconnect/flutter-blank/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: "80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
- platform: android
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
- platform: ios
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
- platform: linux
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
- platform: macos
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
- platform: web
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
- platform: windows
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
28 changes: 28 additions & 0 deletions dataconnect/flutter-blank/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml

linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
13 changes: 13 additions & 0 deletions dataconnect/flutter-blank/android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks
63 changes: 63 additions & 0 deletions dataconnect/flutter-blank/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
plugins {
id "com.android.application"
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file("local.properties")
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader("UTF-8") { reader ->
localProperties.load(reader)
}
}

def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
if (flutterVersionCode == null) {
flutterVersionCode = "1"
}

def flutterVersionName = localProperties.getProperty("flutter.versionName")
if (flutterVersionName == null) {
flutterVersionName = "1.0"
}


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

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

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}

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

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.debug
}
}
}

flutter {
source = "../.."
}
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 dataconnect/flutter-blank/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="blank"
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.blank

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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
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>
18 changes: 18 additions & 0 deletions dataconnect/flutter-blank/android/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
allprojects {
repositories {
google()
mavenCentral()
}
}

rootProject.buildDir = "../build"
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(":app")
}

tasks.register("clean", Delete) {
delete rootProject.buildDir
}
3 changes: 3 additions & 0 deletions dataconnect/flutter-blank/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
Loading