Skip to content

Commit 6a2afde

Browse files
authored
♻️ New example and better docs (#101)
1 parent cab6cd2 commit 6a2afde

33 files changed

+888
-86
lines changed

example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ android {
3838
}
3939

4040
defaultConfig {
41-
applicationId "com.fluttercandies.wechat_camera_picker_demo"
41+
applicationId "com.fluttercandies.wechatCameraPickerExample"
4242
minSdkVersion 21
43-
targetSdkVersion flutter.compileSdkVersion
43+
targetSdkVersion flutter.targetSdkVersion
4444
versionCode flutterVersionCode.toInteger()
4545
versionName flutterVersionName
4646
}

example/android/app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.fluttercandies.wechat_camera_picker_demo">
2+
package="com.fluttercandies.wechatCameraPickerExample">
33

44
<uses-permission android:name="android.permission.INTERNET" />
55
<uses-permission android:name="android.permission.FLASHLIGHT" />
6-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
6+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" />
77

88
<uses-feature
99
android:name="android.hardware.camera"
1010
android:required="true"/>
1111

1212
<application
13-
android:label="wechat_camera_picker_demo"
13+
android:label="Wechat Camera Picker Example"
1414
android:icon="@mipmap/ic_launcher"
1515
android:requestLegacyExternalStorage="true"
1616
android:allowBackup="false">
@@ -22,27 +22,17 @@
2222
android:hardwareAccelerated="true"
2323
android:windowSoftInputMode="adjustResize"
2424
android:exported="true">
25+
<intent-filter>
26+
<action android:name="android.intent.action.MAIN"/>
27+
<category android:name="android.intent.category.LAUNCHER"/>
28+
</intent-filter>
2529
<!-- Specifies an Android theme to apply to this Activity as soon as
2630
the Android process has started. This theme is visible to the user
2731
while the Flutter UI initializes. After that, this theme continues
2832
to determine the Window background behind the Flutter UI. -->
2933
<meta-data
30-
android:name="io.flutter.embedding.android.NormalTheme"
31-
android:resource="@style/NormalTheme"
32-
/>
33-
<!-- Displays an Android View that continues showing the launch screen
34-
Drawable until Flutter paints its first frame, then this splash
35-
screen fades out. A splash screen is useful to avoid any visual
36-
gap between the end of Android's launch screen and the painting of
37-
Flutter's first frame. -->
38-
<meta-data
39-
android:name="io.flutter.embedding.android.SplashScreenDrawable"
40-
android:resource="@drawable/launch_background"
41-
/>
42-
<intent-filter>
43-
<action android:name="android.intent.action.MAIN"/>
44-
<category android:name="android.intent.category.LAUNCHER"/>
45-
</intent-filter>
34+
android:name="io.flutter.embedding.android.NormalTheme"
35+
android:resource="@style/NormalTheme" />
4636
</activity>
4737
<!-- Don't delete the meta-data below.
4838
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.fluttercandies.wechat_camera_picker_demo
1+
package com.fluttercandies.wechatCameraPickerExample
22

33
import com.bumptech.glide.annotation.GlideModule
44
import com.bumptech.glide.module.AppGlideModule

example/android/app/src/main/kotlin/com/fluttercandies/wechat_camera_picker_demo/MainActivity.kt renamed to example/android/app/src/main/kotlin/com/fluttercandies/wechatCameraPickerExample/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.fluttercandies.wechat_camera_picker_demo
1+
package com.fluttercandies.wechatCameraPickerExample
22

33
import io.flutter.embedding.android.FlutterActivity
44

131 KB
Loading
70.7 KB
Loading
192 Bytes
Loading
479 Bytes
Loading
1.32 KB
Loading
196 Bytes
Loading

0 commit comments

Comments
 (0)