Skip to content

Commit 6a2cbbc

Browse files
authored
🔧 Reconstruct example native files (#581)
1 parent 9a35c03 commit 6a2cbbc

30 files changed

+258
-268
lines changed

example/.metadata

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,27 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: 0e6818650f2e3798c342f4be293693737e35a453
8-
channel: stable
7+
revision: "54e66469a933b60ddf175f858f82eaeb97e48c8d"
8+
channel: "stable"
99

1010
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
17+
base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
18+
- platform: macos
19+
create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
20+
base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
21+
22+
# User provided section
23+
24+
# List of Local paths (relative to this file) that should be
25+
# ignored by the migrate tool.
26+
#
27+
# Files that are not part of the templates will be ignored by default.
28+
unmanaged_files:
29+
- 'lib/main.dart'
30+
- 'ios/Runner.xcodeproj/project.pbxproj'

example/android/app/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ if (flutterVersionName == null) {
2525

2626
android {
2727
namespace "com.fluttercandies.wechatAssetsPickerExample"
28-
29-
compileSdkVersion 34
28+
compileSdk flutter.compileSdkVersion
3029

3130
sourceSets {
3231
main.java.srcDirs += 'src/main/kotlin'
@@ -35,10 +34,9 @@ android {
3534
defaultConfig {
3635
applicationId "com.fluttercandies.wechatAssetsPickerExample"
3736
minSdkVersion 21
38-
targetSdkVersion 34
37+
targetSdkVersion flutter.targetSdkVersion
3938
versionCode flutterVersionCode.toInteger()
4039
versionName flutterVersionName
41-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4240
}
4341

4442
kotlinOptions {
Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.fluttercandies.wechatAssetsPickerExample">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<uses-permission android:name="android.permission.INTERNET" />
43
<uses-permission
54
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
6-
android:maxSdkVersion="29"/>
5+
android:maxSdkVersion="28"/>
76

87
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
98
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
109
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
1110

1211
<application
1312
android:label="Wechat Assets Picker Example"
13+
android:name="${applicationName}"
1414
android:icon="@mipmap/ic_launcher"
1515
android:allowBackup="false">
1616
<activity
@@ -21,23 +21,34 @@
2121
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
2222
android:hardwareAccelerated="true"
2323
android:windowSoftInputMode="adjustResize">
24-
<intent-filter>
25-
<action android:name="android.intent.action.MAIN"/>
26-
<category android:name="android.intent.category.LAUNCHER"/>
27-
</intent-filter>
2824
<!-- Specifies an Android theme to apply to this Activity as soon as
2925
the Android process has started. This theme is visible to the user
3026
while the Flutter UI initializes. After that, this theme continues
3127
to determine the Window background behind the Flutter UI. -->
3228
<meta-data
33-
android:name="io.flutter.embedding.android.NormalTheme"
34-
android:resource="@style/NormalTheme"
35-
/>
29+
android:name="io.flutter.embedding.android.NormalTheme"
30+
android:resource="@style/NormalTheme"
31+
/>
32+
<intent-filter>
33+
<action android:name="android.intent.action.MAIN"/>
34+
<category android:name="android.intent.category.LAUNCHER"/>
35+
</intent-filter>
3636
</activity>
3737
<!-- Don't delete the meta-data below.
3838
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
3939
<meta-data
4040
android:name="flutterEmbedding"
4141
android:value="2" />
4242
</application>
43+
<!-- Required to query activities that can process text, see:
44+
https://developer.android.com/training/package-visibility?hl=en and
45+
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
46+
47+
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
48+
<queries>
49+
<intent>
50+
<action android:name="android.intent.action.PROCESS_TEXT"/>
51+
<data android:mimeType="text/plain"/>
52+
</intent>
53+
</queries>
4354
</manifest>
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+
the Flutter engine 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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<!-- Theme applied to the Android Window while the process is starting -->
4-
<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">
55
<!-- Show a splash screen on the activity. Automatically removed when
6-
Flutter draws its first frame -->
6+
the Flutter engine draws its first frame -->
77
<item name="android:windowBackground">@drawable/launch_background</item>
88
</style>
99
<!-- Theme applied to the Android Window as soon as the process has started.
1010
This theme determines the color of the Android Window while your
1111
Flutter UI initializes, as well as behind your Flutter UI while its
1212
running.
13-
13+
1414
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:color/white</item>
15+
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
16+
<item name="android:windowBackground">?android:colorBackground</item>
1717
</style>
1818
</resources>

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#Fri Jun 23 08:50:38 CEST 2017
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
43
zipStoreBase=GRADLE_USER_HOME

example/android/settings.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Copyright 2014 The Flutter Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style license that can be
3-
// found in the LICENSE file.
4-
51
pluginManagement {
62
def flutterSdkPath = {
73
def properties = new Properties()

example/ios/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
**/dgph
12
*.mode1v3
23
*.mode2v3
34
*.moved-aside
@@ -18,6 +19,7 @@ Flutter/App.framework
1819
Flutter/Flutter.framework
1920
Flutter/Flutter.podspec
2021
Flutter/Generated.xcconfig
22+
Flutter/ephemeral/
2123
Flutter/app.flx
2224
Flutter/app.zip
2325
Flutter/flutter_assets/

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
6-
<string>$(DEVELOPMENT_LANGUAGE)</string>
6+
<string>en</string>
77
<key>CFBundleExecutable</key>
88
<string>App</string>
99
<key>CFBundleIdentifier</key>

0 commit comments

Comments
 (0)