Skip to content

Commit b7db5b2

Browse files
flut-5452-[feature][flutter]: Ignore file added
1 parent b7e3435 commit b7db5b2

File tree

10 files changed

+32
-36
lines changed

10 files changed

+32
-36
lines changed

android/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ gradle-wrapper.jar
55
/gradlew.bat
66
/local.properties
77
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

android/app/build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ if (flutterVersionName == null) {
2222
}
2323

2424
apply plugin: 'com.android.application'
25+
apply plugin: 'com.google.gms.google-services'
2526
apply plugin: 'kotlin-android'
2627
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2728

@@ -38,7 +39,7 @@ android {
3839

3940
defaultConfig {
4041
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41-
applicationId "com.example.jsonsample"
42+
applicationId "com.example.firebase_chartdata"
4243
minSdkVersion 16
4344
targetSdkVersion 28
4445
versionCode flutterVersionCode.toInteger()
@@ -60,4 +61,5 @@ flutter {
6061

6162
dependencies {
6263
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64+
implementation 'com.google.firebase:firebase-analytics:17.2.2'
6365
}

android/app/src/debug/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.jsonsample">
2+
package="com.example.firebase_chartdata">
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->

android/app/src/main/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.jsonsample">
2+
package="com.example.firebase_chartdata">
33
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
44
calls FlutterMain.startInitialization(this); in its onCreate method.
55
In most cases you can leave this as-is, but you if you want to provide
66
additional functionality it is fine to subclass or reimplement
77
FlutterApplication and put your custom class here. -->
88
<application
99
android:name="io.flutter.app.FlutterApplication"
10-
android:label="jsonsample"
10+
android:label="firebase_chartdata"
1111
android:icon="@mipmap/ic_launcher">
1212
<activity
1313
android:name=".MainActivity"

android/app/src/profile/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.jsonsample">
2+
package="com.example.firebase_chartdata">
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->

android/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ buildscript {
77

88
dependencies {
99
classpath 'com.android.tools.build:gradle:3.5.0'
10+
classpath 'com.google.gms:google-services:4.3.3'
1011
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1112
}
1213
}

android/settings.gradle

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
include ':app'
22

3-
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
3+
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4+
def properties = new Properties()
45

5-
def plugins = new Properties()
6-
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7-
if (pluginsFile.exists()) {
8-
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9-
}
6+
assert localPropertiesFile.exists()
7+
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
108

11-
plugins.each { name, path ->
12-
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13-
include ":$name"
14-
project(":$name").projectDir = pluginDirectory
15-
}
9+
def flutterSdkPath = properties.getProperty("flutter.sdk")
10+
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11+
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"

ios/Runner.xcodeproj/project.pbxproj

+3-14
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
97C146FD1CF9000F007C117D /* Assets.xcassets */,
9191
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
9292
97C147021CF9000F007C117D /* Info.plist */,
93-
97C146F11CF9000F007C117D /* Supporting Files */,
9493
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
9594
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
9695
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
@@ -99,13 +98,6 @@
9998
path = Runner;
10099
sourceTree = "<group>";
101100
};
102-
97C146F11CF9000F007C117D /* Supporting Files */ = {
103-
isa = PBXGroup;
104-
children = (
105-
);
106-
name = "Supporting Files";
107-
sourceTree = "<group>";
108-
};
109101
/* End PBXGroup section */
110102

111103
/* Begin PBXNativeTarget section */
@@ -241,7 +233,6 @@
241233
/* Begin XCBuildConfiguration section */
242234
249021D3217E4FDB00AE95B9 /* Profile */ = {
243235
isa = XCBuildConfiguration;
244-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
245236
buildSettings = {
246237
ALWAYS_SEARCH_USER_PATHS = NO;
247238
CLANG_ANALYZER_NONNULL = YES;
@@ -308,7 +299,7 @@
308299
"$(inherited)",
309300
"$(PROJECT_DIR)/Flutter",
310301
);
311-
PRODUCT_BUNDLE_IDENTIFIER = com.example.jsonsample;
302+
PRODUCT_BUNDLE_IDENTIFIER = com.example.firebaseChartdata;
312303
PRODUCT_NAME = "$(TARGET_NAME)";
313304
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
314305
SWIFT_VERSION = 5.0;
@@ -318,7 +309,6 @@
318309
};
319310
97C147031CF9000F007C117D /* Debug */ = {
320311
isa = XCBuildConfiguration;
321-
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
322312
buildSettings = {
323313
ALWAYS_SEARCH_USER_PATHS = NO;
324314
CLANG_ANALYZER_NONNULL = YES;
@@ -374,7 +364,6 @@
374364
};
375365
97C147041CF9000F007C117D /* Release */ = {
376366
isa = XCBuildConfiguration;
377-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
378367
buildSettings = {
379368
ALWAYS_SEARCH_USER_PATHS = NO;
380369
CLANG_ANALYZER_NONNULL = YES;
@@ -442,7 +431,7 @@
442431
"$(inherited)",
443432
"$(PROJECT_DIR)/Flutter",
444433
);
445-
PRODUCT_BUNDLE_IDENTIFIER = com.example.jsonsample;
434+
PRODUCT_BUNDLE_IDENTIFIER = com.example.firebaseChartdata;
446435
PRODUCT_NAME = "$(TARGET_NAME)";
447436
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
448437
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -469,7 +458,7 @@
469458
"$(inherited)",
470459
"$(PROJECT_DIR)/Flutter",
471460
);
472-
PRODUCT_BUNDLE_IDENTIFIER = com.example.jsonsample;
461+
PRODUCT_BUNDLE_IDENTIFIER = com.example.firebaseChartdata;
473462
PRODUCT_NAME = "$(TARGET_NAME)";
474463
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
475464
SWIFT_VERSION = 5.0;

ios/Runner/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundleName</key>
14-
<string>jsonsample</string>
14+
<string>firebase_chartdata</string>
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>

pubspec.yaml

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: jsonsample
1+
name: firebase_chartdata
22
description: A new Flutter project.
33

44
# The following line prevents the package from being accidentally published to
@@ -18,17 +18,20 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1818
version: 1.0.0+1
1919

2020
environment:
21-
sdk: ">=2.7.0 <3.0.0"
21+
sdk: ">=2.12.0 <3.0.0"
2222

2323
dependencies:
2424
flutter:
2525
sdk: flutter
26+
27+
http: ^0.13.0
28+
firebase_database: ^3.1.6
29+
syncfusion_flutter_charts: '19.1.55+1'
2630

2731

2832
# The following adds the Cupertino Icons font to your application.
2933
# Use with the CupertinoIcons class for iOS style icons.
3034
cupertino_icons: ^0.1.3
31-
syncfusion_flutter_charts: ^18.1.59
3235

3336
dev_dependencies:
3437
flutter_test:
@@ -46,8 +49,9 @@ flutter:
4649
uses-material-design: true
4750

4851
# To add assets to your application, add an assets section, like this:
49-
assets:
50-
- assets/data.json
52+
# assets:
53+
# - images/a_dot_burr.jpeg
54+
# - images/a_dot_ham.jpeg
5155

5256
# An image asset can refer to one or more resolution-specific "variants", see
5357
# https://flutter.dev/assets-and-images/#resolution-aware.

0 commit comments

Comments
 (0)