Skip to content

Commit 02540a9

Browse files
committed
Finally! Permission issues fixed
Converted an old project(flutter 1.2 based) by making a copy, changing appname & copying current files
1 parent 03c9f55 commit 02540a9

File tree

21 files changed

+58
-107
lines changed

21 files changed

+58
-107
lines changed

.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: c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
7+
revision: 78910062997c3a836feee883712c241a5fd22983
88
channel: stable
99

1010
project_type: app

android/app/build.gradle

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

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

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

35+
lintOptions {
36+
disable 'InvalidPackage'
37+
}
38+
3539
defaultConfig {
3640
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3741
applicationId "com.geekflow.wave"
38-
minSdkVersion 25
39-
targetSdkVersion 30
42+
minSdkVersion 16
43+
targetSdkVersion 29
4044
versionCode flutterVersionCode.toInteger()
4145
versionName flutterVersionName
4246
}

android/app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.geekflow.wave">
3-
4-
5-
<!-- Permissions options for the 'storage' group-->
6-
<uses-permission android:name="android.permission.INTERNET"/>
7-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
8-
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
9-
10-
<!-- Permissions options for the `location` group -->
11-
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
12-
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
13-
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
14-
<application
3+
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
4+
calls FlutterMain.startInitialization(this); in its onCreate method.
5+
In most cases you can leave this as-is, but you if you want to provide
6+
additional functionality it is fine to subclass or reimplement
7+
FlutterApplication and put your custom class here. -->
8+
<uses-permission android:name="android.permission.INTERNET"/>
9+
<application
10+
android:name="io.flutter.app.FlutterApplication"
1511
android:label="Wave"
16-
android:icon="@mipmap/ic_launcher"
17-
android:usesCleartextTraffic="true">
12+
android:icon="@mipmap/ic_launcher">
1813
<activity
1914
android:name=".MainActivity"
2015
android:launchMode="singleTop"
File renamed without changes.

android/app/src/main/res/drawable-v21/launch_background.xml

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

android/app/src/main/res/values-night/styles.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
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">
3+
<!-- Theme applied to the Android Window while the process is starting -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
55
<!-- Show a splash screen on the activity. Automatically removed when
66
Flutter draws its first frame -->
77
<item name="android:windowBackground">@drawable/launch_background</item>
@@ -12,7 +12,7 @@
1212
running.
1313
1414
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>
15+
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
16+
<item name="android:windowBackground">@android:color/white</item>
1717
</style>
1818
</resources>

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.1.0'
9+
classpath 'com.android.tools.build:gradle:3.5.0'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

android/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
4+
android.enableR8=true

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip

0 commit comments

Comments
 (0)