Skip to content

Commit 1fcd258

Browse files
committed
Initial commit
0 parents  commit 1fcd258

File tree

279 files changed

+8517
-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.

279 files changed

+8517
-0
lines changed

.fvmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"flutter": "3.7.12"
3+
}

.gitignore

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

.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.
5+
6+
version:
7+
revision: f1875d570e39de09040c8f79aa13cc56baab8db1
8+
channel: stable
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
17+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
18+
- platform: android
19+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
20+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
21+
- platform: ios
22+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
23+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
24+
- platform: linux
25+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
26+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
27+
- platform: macos
28+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
29+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
30+
- platform: web
31+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
32+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
33+
- platform: windows
34+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
35+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
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'

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# fling_knife
2+
3+
A new Flutter application.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13+
14+
For help getting started with Flutter, view our
15+
[online documentation](https://flutter.dev/docs), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.

analysis_options.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at
17+
# https://dart-lang.github.io/linter/lints/index.html.
18+
#
19+
# Instead of disabling a lint rule for the entire project in the
20+
# section below, it can also be suppressed for a single line of code
21+
# or a specific dart file by using the `// ignore: name_of_lint` and
22+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23+
# producing the lint.
24+
rules:
25+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
26+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27+
28+
# Additional information about this file can be found at
29+
# https://dart.dev/guides/language/analysis-options

android/.gitignore

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

android/app/build.gradle

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
def keystoreProperties = new Properties()
2+
def keystorePropertiesFile = rootProject.file('key.properties')
3+
if (keystorePropertiesFile.exists()) {
4+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
5+
}
6+
7+
def localProperties = new Properties()
8+
def localPropertiesFile = rootProject.file('local.properties')
9+
if (localPropertiesFile.exists()) {
10+
localPropertiesFile.withReader('UTF-8') { reader ->
11+
localProperties.load(reader)
12+
}
13+
}
14+
15+
def flutterRoot = localProperties.getProperty('flutter.sdk')
16+
if (flutterRoot == null) {
17+
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
18+
}
19+
20+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
21+
if (flutterVersionCode == null) {
22+
flutterVersionCode = '1'
23+
}
24+
25+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
26+
if (flutterVersionName == null) {
27+
flutterVersionName = '1.0'
28+
}
29+
30+
def AdMobAppId = localProperties.getProperty('AdMobAppId')
31+
if (AdMobAppId == null) {
32+
AdMobAppId = 'ca-app-pub-3940256099942544~3347511713'
33+
}
34+
35+
apply plugin: 'com.android.application'
36+
apply plugin: 'kotlin-android'
37+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
38+
39+
android {
40+
compileSdkVersion 31
41+
42+
compileOptions {
43+
sourceCompatibility JavaVersion.VERSION_1_8
44+
targetCompatibility JavaVersion.VERSION_1_8
45+
}
46+
47+
kotlinOptions {
48+
jvmTarget = '1.8'
49+
}
50+
51+
sourceSets {
52+
main.java.srcDirs += 'src/main/kotlin'
53+
}
54+
55+
defaultConfig {
56+
applicationId "com.appsbay.chess_room"
57+
minSdkVersion 21
58+
targetSdkVersion 31
59+
versionCode flutterVersionCode.toInteger()
60+
versionName flutterVersionName
61+
multiDexEnabled true
62+
manifestPlaceholders = [AdMobAppId: AdMobAppId]
63+
}
64+
65+
signingConfigs {
66+
release {
67+
keyAlias keystoreProperties['keyAlias']
68+
keyPassword keystoreProperties['keyPassword']
69+
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
70+
storePassword keystoreProperties['storePassword']
71+
}
72+
}
73+
74+
buildTypes {
75+
release {
76+
// Signing with the debug keys for now, so `flutter run --release` works.
77+
signingConfig signingConfigs.release
78+
79+
// minifyEnabled true
80+
// useProguard true
81+
//
82+
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
83+
}
84+
}
85+
}
86+
87+
flutter {
88+
source '../..'
89+
}
90+
91+
dependencies {
92+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
93+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.appsbay.chess_room">
3+
<!-- Flutter 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+
8+
<application>
9+
<meta-data
10+
android:name="com.google.android.gms.ads.APPLICATION_ID"
11+
android:value="${AdMobAppId}"/>
12+
</application>
13+
14+
</manifest>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.appsbay.chess_room">
3+
4+
<uses-permission android:name="android.permission.INTERNET"/>
5+
6+
<application
7+
android:label="@string/app_name"
8+
android:name="${applicationName}"
9+
android:icon="@mipmap/launcher_icon">
10+
11+
<meta-data
12+
android:name="com.google.android.gms.ads.APPLICATION_ID"
13+
android:value="${AdMobAppId}"/>
14+
15+
<activity
16+
android:name=".MainActivity"
17+
android:exported="true"
18+
android:launchMode="singleTop"
19+
android:theme="@style/LaunchTheme"
20+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
21+
android:hardwareAccelerated="true"
22+
android:windowSoftInputMode="adjustResize">
23+
<!-- Specifies an Android theme to apply to this Activity as soon as
24+
the Android process has started. This theme is visible to the user
25+
while the Flutter UI initializes. After that, this theme continues
26+
to determine the Window background behind the Flutter UI. -->
27+
<meta-data
28+
android:name="io.flutter.embedding.android.NormalTheme"
29+
android:resource="@style/NormalTheme"
30+
/>
31+
<intent-filter>
32+
<action android:name="android.intent.action.MAIN"/>
33+
<category android:name="android.intent.category.LAUNCHER"/>
34+
</intent-filter>
35+
</activity>
36+
<!-- Don't delete the meta-data below.
37+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
38+
<meta-data
39+
android:name="flutterEmbedding"
40+
android:value="2" />
41+
</application>
42+
</manifest>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.appsbay.chess_room
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity: FlutterActivity() {
6+
}

0 commit comments

Comments
 (0)