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

feat: Create example2 #2

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .firebase/hosting.ZXhhbXBsZS9idWlsZC93ZWI.cache
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
favicon.png,1687870676758,fcc7c4545d5b62ad01682589e6fdc7ea03d0a3b42069963c815c344b632eb5cf
flutter.js,1706819426000,61698579a7a5c421b0610cebbbceb55584943f377ad63d84d70a429681814184
flutter_service_worker.js,1708972588271,1a8257f2797ac513d3185f4617182524dbec0a443f1750bec499b6d7ce83b434
index.html,1708972588071,0270a7661f4f94ea94707a85e66bf54c9db01dbe5355b9102db4f5c3bbedceed
main.dart.js,1708972586820,594d467e2a9680982e50e8c1a75d93c9b8fd74ca83fe9b056a0d14f66cfba81a
manifest.json,1696840448575,f81e4554dc7f05633a2c5597416813859de5ace688342db41b201d42790fb8a7
version.json,1708972587287,2f06c1ff01b63ded25d9e999e5651966d897994731d5fc924f36d69cf29d9a41
assets/AssetManifest.bin,1708972587349,9ef9b27e7c96c8fadc8a13de19a85fa9215df313ace5800c79782fa573ab6bb4
assets/AssetManifest.bin.json,1708972587349,b081d355f99f48161a0add550237deed14875c6917625667b34f14d4c5410f0d
assets/AssetManifest.json,1708972587349,e1765baf5f9582d7f51cb137538999d143b3054c36c13a0eecaa940b3079e566
assets/FontManifest.json,1708972587349,9ea504185602e57d97b7c3517d382b8627a13c0181c490c96a9b55a5d5c8810c
assets/NOTICES,1708972587350,0ab0bd155e30ed02f12ec4239d18e3bd959f704fea4db945a280de7f9ed31758
assets/fonts/MaterialIcons-Regular.otf,1708972588065,b79d28e6db3c7919023ec2e63190b1bc3322197ec7e63e9e1ec76dfc7a22f197
assets/packages/cupertino_icons/assets/CupertinoIcons.ttf,1708972588065,53ea433b22c061859c03c35b908eef1e49786ab0ec09bf1e01df03a5df5397ea
assets/shaders/ink_sparkle.frag,1708972587432,80c6e65c75f1de434b1b22dba61e96ad82dba0f2fc5e8b3b59c2def46d794354
canvaskit/canvaskit.js,1706819552000,ee16265f1e521f29804ab4a6d88d627dc4b9e0fd0a17c997b4d81f577f7ec4ed
canvaskit/canvaskit.js.symbols,1706819550000,e3a8227e137a970632ebd651843c04a72198b608d0a0da5a889793ee0ed44ad6
canvaskit/canvaskit.wasm,1706819552000,eed60e46a26506d8259ae2e1d59b451be5e21a384311f8bc70a783f35c42adf6
Expand All @@ -15,15 +27,3 @@ icons/Icon-192.png,1687870676758,d2e0131bb7851eb9d98f7885edb5ae4b4d6b7a6c7addf8a
icons/Icon-512.png,1687870676758,7a31ce91e554f1941158ca46f31c7f3f2b7c8c129229ea74a8fae1affe335033
icons/Icon-maskable-192.png,1695463337283,dd96c123fdf6817cdf7e63d9693bcc246bac2e3782a41a6952fa41c0617c5573
icons/Icon-maskable-512.png,1695463337283,e7983524dc70254adc61764657d7e03d19284de8da586b5818d737bc08c6d14e
assets/AssetManifest.json,1708972587349,e1765baf5f9582d7f51cb137538999d143b3054c36c13a0eecaa940b3079e566
index.html,1708972588071,0270a7661f4f94ea94707a85e66bf54c9db01dbe5355b9102db4f5c3bbedceed
assets/AssetManifest.bin.json,1708972587349,b081d355f99f48161a0add550237deed14875c6917625667b34f14d4c5410f0d
assets/FontManifest.json,1708972587349,9ea504185602e57d97b7c3517d382b8627a13c0181c490c96a9b55a5d5c8810c
version.json,1708972587287,2f06c1ff01b63ded25d9e999e5651966d897994731d5fc924f36d69cf29d9a41
flutter_service_worker.js,1708972588271,1a8257f2797ac513d3185f4617182524dbec0a443f1750bec499b6d7ce83b434
assets/packages/cupertino_icons/assets/CupertinoIcons.ttf,1708972588065,53ea433b22c061859c03c35b908eef1e49786ab0ec09bf1e01df03a5df5397ea
assets/AssetManifest.bin,1708972587349,9ef9b27e7c96c8fadc8a13de19a85fa9215df313ace5800c79782fa573ab6bb4
assets/shaders/ink_sparkle.frag,1708972587432,80c6e65c75f1de434b1b22dba61e96ad82dba0f2fc5e8b3b59c2def46d794354
assets/fonts/MaterialIcons-Regular.otf,1708972588065,b79d28e6db3c7919023ec2e63190b1bc3322197ec7e63e9e1ec76dfc7a22f197
assets/NOTICES,1708972587350,0ab0bd155e30ed02f12ec4239d18e3bd959f704fea4db945a280de7f9ed31758
main.dart.js,1708972586820,594d467e2a9680982e50e8c1a75d93c9b8fd74ca83fe9b056a0d14f66cfba81a
29 changes: 29 additions & 0 deletions .firebase/hosting.ZXhhbXBsZTIvYnVpbGQvd2Vi.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
favicon.png,1699889948881,fcc7c4545d5b62ad01682589e6fdc7ea03d0a3b42069963c815c344b632eb5cf
version.json,1709062998918,13d5dbf9ecdefd155af15e8230f4a5c7b24af476aae4aae92907df70477050d4
index.html,1709062999641,2c50b9c7fe210b9d2ab0d7d3149dc57d4c27d978e107680bc0d7e52d8ed302c7
flutter.js,1706819426000,61698579a7a5c421b0610cebbbceb55584943f377ad63d84d70a429681814184
assets/AssetManifest.bin.json,1709062998987,b081d355f99f48161a0add550237deed14875c6917625667b34f14d4c5410f0d
assets/FontManifest.json,1709062998987,9ea504185602e57d97b7c3517d382b8627a13c0181c490c96a9b55a5d5c8810c
manifest.json,1709062622303,592251e43ff7c2c33d42b47059a16310f8be455f36c2c4f9e4ca3b3b1a152d95
assets/AssetManifest.bin,1709062998987,9ef9b27e7c96c8fadc8a13de19a85fa9215df313ace5800c79782fa573ab6bb4
flutter_service_worker.js,1709062999828,d6920351ad2307f4eef3a55b400e650a77ddd240804272a67f9cea079fe3ea53
assets/packages/cupertino_icons/assets/CupertinoIcons.ttf,1709062999636,53ea433b22c061859c03c35b908eef1e49786ab0ec09bf1e01df03a5df5397ea
assets/shaders/ink_sparkle.frag,1709062999074,80c6e65c75f1de434b1b22dba61e96ad82dba0f2fc5e8b3b59c2def46d794354
assets/AssetManifest.json,1709062998987,e1765baf5f9582d7f51cb137538999d143b3054c36c13a0eecaa940b3079e566
assets/fonts/MaterialIcons-Regular.otf,1709062999636,f131655563bfc2f7376f765ad8ff58d72dd849e9dcc372ab834f7fc77a417610
canvaskit/skwasm.worker.js,1706819704000,d480228d9a755f2a0b3c3ff0c171ade188993bfc427eb3489790ee4db93ecb60
icons/Icon-192.png,1699889948882,d2e0131bb7851eb9d98f7885edb5ae4b4d6b7a6c7addf8a25b9b712b39274c0f
icons/Icon-512.png,1699889948882,7a31ce91e554f1941158ca46f31c7f3f2b7c8c129229ea74a8fae1affe335033
icons/Icon-maskable-192.png,1704489507613,dd96c123fdf6817cdf7e63d9693bcc246bac2e3782a41a6952fa41c0617c5573
icons/Icon-maskable-512.png,1704489507613,e7983524dc70254adc61764657d7e03d19284de8da586b5818d737bc08c6d14e
canvaskit/skwasm.js,1706819704000,fae1fcb2f2dbbba6469850a66b9bc483a3fda332a1fff258745492f748c1bfcb
canvaskit/canvaskit.js,1706819552000,ee16265f1e521f29804ab4a6d88d627dc4b9e0fd0a17c997b4d81f577f7ec4ed
canvaskit/chromium/canvaskit.js,1706819622000,e1a3730c49dbb07b240f7667359133558780a3b4ec23eb16f0f83476f9fe04e3
assets/NOTICES,1709062998988,ea0e50295dddd7aa10ce4b10aba1851a4ea6d2cbe20d6ed16299d78e25a975ee
canvaskit/canvaskit.js.symbols,1706819550000,e3a8227e137a970632ebd651843c04a72198b608d0a0da5a889793ee0ed44ad6
canvaskit/chromium/canvaskit.js.symbols,1706819620000,2a63e2866417ce3530f94a341033717b9815881493afce196d1edeca79999522
canvaskit/skwasm.js.symbols,1706819704000,201e98730486507aede57e69c991e00b1a0596816558e939038105866f784b14
main.dart.js,1709062998494,d81a9b0601ca490a4de7fef6a1994c6d119f658641d7a36fd0a3b52658eae131
canvaskit/skwasm.wasm,1706819704000,2fd0c2bc6d866516b52581460c88363db8ee13db8d2e6ae943c1e80e9ba3fdec
canvaskit/chromium/canvaskit.wasm,1706819622000,fdbfcfe5068c4be2bde8068f7fdcebb5252d7f2130454a10986f393e4f78debf
canvaskit/canvaskit.wasm,1706819552000,eed60e46a26506d8259ae2e1d59b451be5e21a384311f8bc70a783f35c42adf6
17 changes: 15 additions & 2 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
{
"projects": {
"default": "overlay-search"
}
}
},
"targets": {
"overlay-search": {
"hosting": {
"example": [
"example-overlay"
],
"example2": [
"example2-90d3c"
]
}
}
},
"etags": {}
}
2 changes: 2 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
- run: flutter pub get
- run: flutter build web --release --web-renderer=canvaskit
working-directory: ./example
- run: flutter build web --release --web-renderer=canvaskit
working-directory: ./example2
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/patrol_publish.yml

This file was deleted.

43 changes: 43 additions & 0 deletions example2/.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
39 changes: 39 additions & 0 deletions example2/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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: "6efab1bc0cdf56d97e83b87a1eae14ca82003a13"
channel: "master"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 6efab1bc0cdf56d97e83b87a1eae14ca82003a13
base_revision: 6efab1bc0cdf56d97e83b87a1eae14ca82003a13
- platform: android
create_revision: 6efab1bc0cdf56d97e83b87a1eae14ca82003a13
base_revision: 6efab1bc0cdf56d97e83b87a1eae14ca82003a13
- platform: ios
create_revision: 6efab1bc0cdf56d97e83b87a1eae14ca82003a13
base_revision: 6efab1bc0cdf56d97e83b87a1eae14ca82003a13
- platform: macos
create_revision: 6efab1bc0cdf56d97e83b87a1eae14ca82003a13
base_revision: 6efab1bc0cdf56d97e83b87a1eae14ca82003a13
- platform: web
create_revision: 6efab1bc0cdf56d97e83b87a1eae14ca82003a13
base_revision: 6efab1bc0cdf56d97e83b87a1eae14ca82003a13

# 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'
16 changes: 16 additions & 0 deletions example2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# example2

A new Flutter project.

## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)

For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
28 changes: 28 additions & 0 deletions example2/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 example2/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/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
**/*.keystore
**/*.jks
67 changes: 67 additions & 0 deletions example2/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
plugins {
id "com.android.application"
id "kotlin-android"
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.example2"
compileSdk flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.example2"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdk flutter.minSdkVersion
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 '../..'
}

dependencies {}
7 changes: 7 additions & 0 deletions example2/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>
44 changes: 44 additions & 0 deletions example2/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="example2"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
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?hl=en 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.example2

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity()
Loading
Loading