Skip to content

Commit 5e6e123

Browse files
committed
İnternet permission eklendi böylece font download problemi çözüldü.
1 parent 8706a69 commit 5e6e123

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

android/app/build.gradle

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ apply plugin: 'com.android.application'
2525
apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

28+
def keystoreProperties = new Properties()
29+
def keystorePropertiesFile = rootProject.file('key.properties')
30+
if (keystorePropertiesFile.exists()) {
31+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
32+
}
2833
android {
2934
compileSdkVersion 29
3035

@@ -44,12 +49,18 @@ android {
4449
versionCode flutterVersionCode.toInteger()
4550
versionName flutterVersionName
4651
}
47-
52+
signingConfigs {
53+
release {
54+
keyAlias keystoreProperties['keyAlias']
55+
keyPassword keystoreProperties['keyPassword']
56+
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
57+
storePassword keystoreProperties['storePassword']
58+
}
59+
}
4860
buildTypes {
4961
release {
50-
// TODO: Add your own signing config for the release build.
51-
// Signing with the debug keys for now, so `flutter run --release` works.
52-
signingConfig signingConfigs.debug
62+
minifyEnabled true
63+
signingConfig signingConfigs.release
5364
}
5465
}
5566
}

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
In most cases you can leave this as-is, but you if you want to provide
66
additional functionality it is fine to subclass or reimplement
77
FlutterApplication and put your custom class here. -->
8+
<uses-permission android:name="android.permission.INTERNET" />
89
<application
910
android:name="io.flutter.app.FlutterApplication"
1011
android:label="Task Manager"

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.0.1'
9+
classpath 'com.android.tools.build:gradle:3.6.3'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A new Flutter application.
44
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
55

66

7-
version: 1.0.0+1
7+
version: 1.0.1+2
88

99
environment:
1010
sdk: ">=2.7.0 <3.0.0"

0 commit comments

Comments
 (0)