Skip to content

Commit cdae061

Browse files
pr-MaisSalakar
andauthored
refactor: recreate ios, android, web and macOS folders for example app (#8255)
Co-authored-by: pr_Mais <[email protected]> Co-authored-by: Mike Diarmid <[email protected]>
1 parent ecbff15 commit cdae061

File tree

86 files changed

+725
-749
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+725
-749
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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 and should not be manually edited.
5+
6+
version:
7+
revision: 7e9793dee1b85a243edd0e06cb1658e98b077561
8+
channel: stable
9+
10+
project_type: app
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

packages/cloud_firestore/cloud_firestore/example/android/app/build.gradle

100755100644
Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,32 @@ if (flutterVersionName == null) {
2222
}
2323

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

2728
android {
28-
compileSdkVersion 31
29+
compileSdkVersion flutter.compileSdkVersion
2930

30-
lintOptions {
31-
disable 'InvalidPackage'
31+
compileOptions {
32+
sourceCompatibility JavaVersion.VERSION_1_8
33+
targetCompatibility JavaVersion.VERSION_1_8
34+
}
35+
36+
kotlinOptions {
37+
jvmTarget = '1.8'
38+
}
39+
40+
sourceSets {
41+
main.java.srcDirs += 'src/main/kotlin'
3242
}
3343

3444
defaultConfig {
35-
applicationId 'io.flutter.plugins.firebase.firestoreexample'
45+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
46+
applicationId "io.flutter.plugins.firebase.firestoreexample"
3647
minSdkVersion 19
37-
targetSdkVersion 31
48+
targetSdkVersion flutter.targetSdkVersion
3849
versionCode flutterVersionCode.toInteger()
3950
versionName flutterVersionName
40-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4151
multiDexEnabled true
4252
}
4353

@@ -55,8 +65,5 @@ flutter {
5565
}
5666

5767
dependencies {
58-
testImplementation 'junit:junit:4.13.2'
59-
androidTestImplementation 'androidx.test:runner:1.4.0'
60-
androidTestImplementation 'androidx.test:rules:1.4.0'
61-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
68+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
6269
}

0 commit comments

Comments
 (0)