Skip to content

Commit 2112aea

Browse files
committed
Merge branch 'jonbhanson-master' into v1.0.0
2 parents 8861ca7 + fe1fc66 commit 2112aea

Some content is hidden

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

50 files changed

+497
-1008
lines changed

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
.buildlog/
99
.history
1010
.svn/
11-
resources/
1211

1312
# IntelliJ related
1413
*.iml
@@ -25,10 +24,12 @@ resources/
2524
**/doc/api/
2625
.dart_tool/
2726
.flutter-plugins
27+
.flutter-plugins-dependencies
2828
.packages
2929
.pub-cache/
3030
.pub/
3131
build/
32+
pubspec.lock
3233

3334
# Android related
3435
**/android/**/gradle-wrapper.jar
@@ -58,6 +59,7 @@ build/
5859
**/ios/.generated/
5960
**/ios/Flutter/App.framework
6061
**/ios/Flutter/Flutter.framework
62+
**/ios/Flutter/Flutter.podspec
6163
**/ios/Flutter/Generated.xcconfig
6264
**/ios/Flutter/app.flx
6365
**/ios/Flutter/app.zip
@@ -71,6 +73,3 @@ build/
7173
!**/ios/**/default.mode2v3
7274
!**/ios/**/default.pbxuser
7375
!**/ios/**/default.perspectivev3
74-
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
75-
example/.flutter-plugins-dependencies
76-
example/ios/Flutter/Flutter.podspec

.vscode/launch.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.0
2+
3+
* Adds null safety. Refresh example app.
4+
15
## 0.1.9+4
26

37
* Fixed build failure

example/.gitignore

Lines changed: 13 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -22,52 +22,25 @@
2222

2323
# Flutter/Dart/Pub related
2424
**/doc/api/
25+
**/ios/Flutter/.last_build_id
2526
.dart_tool/
2627
.flutter-plugins
28+
.flutter-plugins-dependencies
2729
.packages
2830
.pub-cache/
2931
.pub/
3032
/build/
3133

32-
# Android related
33-
**/android/**/gradle-wrapper.jar
34-
**/android/.gradle
35-
**/android/captures/
36-
**/android/gradlew
37-
**/android/gradlew.bat
38-
**/android/local.properties
39-
**/android/**/GeneratedPluginRegistrant.java
34+
# Web related
35+
lib/generated_plugin_registrant.dart
4036

41-
# iOS/XCode related
42-
**/ios/**/*.mode1v3
43-
**/ios/**/*.mode2v3
44-
**/ios/**/*.moved-aside
45-
**/ios/**/*.pbxuser
46-
**/ios/**/*.perspectivev3
47-
**/ios/**/*sync/
48-
**/ios/**/.sconsign.dblite
49-
**/ios/**/.tags*
50-
**/ios/**/.vagrant/
51-
**/ios/**/DerivedData/
52-
**/ios/**/Icon?
53-
**/ios/**/Pods/
54-
**/ios/**/.symlinks/
55-
**/ios/**/profile
56-
**/ios/**/xcuserdata
57-
**/ios/.generated/
58-
**/ios/Flutter/App.framework
59-
**/ios/Flutter/Flutter.framework
60-
**/ios/Flutter/Generated.xcconfig
61-
**/ios/Flutter/app.flx
62-
**/ios/Flutter/app.zip
63-
**/ios/Flutter/flutter_assets/
64-
**/ios/Flutter/flutter_export_environment.sh
65-
**/ios/ServiceDefinitions.json
66-
**/ios/Runner/GeneratedPluginRegistrant.*
37+
# Symbolication related
38+
app.*.symbols
6739

68-
# Exceptions to above rules.
69-
!**/ios/**/default.mode1v3
70-
!**/ios/**/default.mode2v3
71-
!**/ios/**/default.pbxuser
72-
!**/ios/**/default.perspectivev3
73-
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
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

example/.metadata

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: cc949a8e8b9cf394b9290a8e80f87af3e207dce5
7+
revision: c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
88
channel: stable
99

1010
project_type: app

example/android/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

example/android/.project

Lines changed: 0 additions & 28 deletions
This file was deleted.

example/android/.settings/org.eclipse.buildship.core.prefs

Lines changed: 0 additions & 13 deletions
This file was deleted.

example/android/app/.classpath

Lines changed: 0 additions & 6 deletions
This file was deleted.

example/android/app/.project

Lines changed: 0 additions & 34 deletions
This file was deleted.

example/android/app/.settings/org.eclipse.buildship.core.prefs

Lines changed: 0 additions & 2 deletions
This file was deleted.

example/android/app/.settings/org.eclipse.jdt.core.prefs

Lines changed: 0 additions & 4 deletions
This file was deleted.

example/android/app/build.gradle

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,19 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 28
29+
compileSdkVersion 30
3030

3131
sourceSets {
3232
main.java.srcDirs += 'src/main/kotlin'
3333
}
3434

35-
lintOptions {
36-
disable 'InvalidPackage'
37-
}
38-
3935
defaultConfig {
40-
applicationId "de.luisthein.flutter_platform_maps_example"
36+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37+
applicationId "com.example.flutter_platform_maps_example"
4138
minSdkVersion 16
42-
targetSdkVersion 28
39+
targetSdkVersion 30
4340
versionCode flutterVersionCode.toInteger()
4441
versionName flutterVersionName
45-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4642
}
4743

4844
buildTypes {
@@ -60,7 +56,4 @@ flutter {
6056

6157
dependencies {
6258
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63-
testImplementation 'junit:junit:4.12'
64-
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
65-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
6659
}
Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.example.flutter_platform_maps_example">
3-
4-
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
5-
calls FlutterMain.startInitialization(this); in its onCreate method.
6-
In most cases you can leave this as-is, but you if you want to provide
7-
additional functionality it is fine to subclass or reimplement
8-
FlutterApplication and put your custom class here. -->
9-
<application
10-
android:name="io.flutter.app.FlutterApplication"
3+
<application
114
android:label="flutter_platform_maps_example"
125
android:icon="@mipmap/ic_launcher">
136
<meta-data
@@ -17,20 +10,35 @@
1710
android:name=".MainActivity"
1811
android:launchMode="singleTop"
1912
android:theme="@style/LaunchTheme"
20-
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
13+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
2114
android:hardwareAccelerated="true"
2215
android:windowSoftInputMode="adjustResize">
23-
<!-- This keeps the window background of the activity showing
24-
until Flutter renders its first frame. It can be removed if
25-
there is no splash screen (such as the default splash screen
26-
defined in @style/LaunchTheme). -->
16+
<!-- Specifies an Android theme to apply to this Activity as soon as
17+
the Android process has started. This theme is visible to the user
18+
while the Flutter UI initializes. After that, this theme continues
19+
to determine the Window background behind the Flutter UI. -->
2720
<meta-data
28-
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
29-
android:value="true" />
21+
android:name="io.flutter.embedding.android.NormalTheme"
22+
android:resource="@style/NormalTheme"
23+
/>
24+
<!-- Displays an Android View that continues showing the launch screen
25+
Drawable until Flutter paints its first frame, then this splash
26+
screen fades out. A splash screen is useful to avoid any visual
27+
gap between the end of Android's launch screen and the painting of
28+
Flutter's first frame. -->
29+
<meta-data
30+
android:name="io.flutter.embedding.android.SplashScreenDrawable"
31+
android:resource="@drawable/launch_background"
32+
/>
3033
<intent-filter>
3134
<action android:name="android.intent.action.MAIN"/>
3235
<category android:name="android.intent.category.LAUNCHER"/>
3336
</intent-filter>
3437
</activity>
38+
<!-- Don't delete the meta-data below.
39+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
40+
<meta-data
41+
android:name="flutterEmbedding"
42+
android:value="2" />
3543
</application>
3644
</manifest>
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
package com.example.flutter_platform_maps_example
22

3-
import android.os.Bundle
4-
5-
import io.flutter.app.FlutterActivity
6-
import io.flutter.plugins.GeneratedPluginRegistrant
3+
import io.flutter.embedding.android.FlutterActivity
74

85
class MainActivity: FlutterActivity() {
9-
override fun onCreate(savedInstanceState: Bundle?) {
10-
super.onCreate(savedInstanceState)
11-
GeneratedPluginRegistrant.registerWith(this)
12-
}
136
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Modify this file to customize your launch splash screen -->
3+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item android:drawable="?android:colorBackground" />
5+
6+
<!-- You can insert your own image assets here -->
7+
<!-- <item>
8+
<bitmap
9+
android:gravity="center"
10+
android:src="@mipmap/launch_image" />
11+
</item> -->
12+
</layer-list>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
5+
<!-- Show a splash screen on the activity. Automatically removed when
6+
Flutter draws its first frame -->
7+
<item name="android:windowBackground">@drawable/launch_background</item>
8+
</style>
9+
<!-- Theme applied to the Android Window as soon as the process has started.
10+
This theme determines the color of the Android Window while your
11+
Flutter UI initializes, as well as behind your Flutter UI while its
12+
running.
13+
14+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
15+
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
16+
<item name="android:windowBackground">?android:colorBackground</item>
17+
</style>
18+
</resources>
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
45
<!-- Show a splash screen on the activity. Automatically removed when
56
Flutter draws its first frame -->
67
<item name="android:windowBackground">@drawable/launch_background</item>
78
</style>
9+
<!-- Theme applied to the Android Window as soon as the process has started.
10+
This theme determines the color of the Android Window while your
11+
Flutter UI initializes, as well as behind your Flutter UI while its
12+
running.
13+
14+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
15+
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
16+
<item name="android:windowBackground">?android:colorBackground</item>
17+
</style>
818
</resources>

0 commit comments

Comments
 (0)