Compare commits
No commits in common. "2bb4a2a293e72d5af0e7b7b94ea3fc211726ba21" and "fb0902652eadb29c188228f51f8427c783cfd341" have entirely different histories.
2bb4a2a293
...
fb0902652e
10 changed files with 95 additions and 129 deletions
|
@ -1,11 +1,3 @@
|
|||
plugins {
|
||||
id "com.android.application"
|
||||
id "kotlin-android"
|
||||
id "dev.flutter.flutter-gradle-plugin"
|
||||
id "com.google.gms.google-services"
|
||||
id "com.google.firebase.crashlytics"
|
||||
}
|
||||
|
||||
def localProperties = new Properties()
|
||||
def localPropertiesFile = rootProject.file('local.properties')
|
||||
if (localPropertiesFile.exists()) {
|
||||
|
@ -14,10 +6,9 @@ if (localPropertiesFile.exists()) {
|
|||
}
|
||||
}
|
||||
|
||||
def keystoreProperties = new Properties()
|
||||
def keystorePropertiesFile = rootProject.file('key.properties')
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
||||
if (flutterRoot == null) {
|
||||
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
||||
}
|
||||
|
||||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
||||
|
@ -30,28 +21,31 @@ if (flutterVersionName == null) {
|
|||
flutterVersionName = '1.0'
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||
|
||||
android {
|
||||
|
||||
// ----- BEGIN flavorDimensions (autogenerated by flutter_flavorizr) -----
|
||||
flavorDimensions += "flavor-type"
|
||||
flavorDimensions "flavor-type"
|
||||
|
||||
productFlavors {
|
||||
develop {
|
||||
dimension "flavor-type"
|
||||
applicationId "{{android_app_id}}.dev"
|
||||
resValue "string", "app_name", "{{dispay_name}} dev"
|
||||
applicationIdSuffix ".dev"
|
||||
resValue "string", "app_name", "{{dispay_name}} Dev"
|
||||
versionNameSuffix ".dev"
|
||||
}
|
||||
prod {
|
||||
dimension "flavor-type"
|
||||
applicationId "{{android_app_id}}"
|
||||
resValue "string", "app_name", "{{dispay_name}}"
|
||||
}
|
||||
}
|
||||
|
||||
// ----- END flavorDimensions (autogenerated by flutter_flavorizr) -----
|
||||
|
||||
namespace "{{android_app_id}}"
|
||||
compileSdk flutter.compileSdkVersion
|
||||
compileSdkVersion flutter.compileSdkVersion
|
||||
ndkVersion flutter.ndkVersion
|
||||
|
||||
compileOptions {
|
||||
|
@ -72,20 +66,21 @@ android {
|
|||
applicationId "{{android_app_id}}"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
||||
minSdkVersion 26
|
||||
minSdkVersion flutter.minSdkVersion
|
||||
targetSdkVersion flutter.targetSdkVersion
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
multiDexEnabled true
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
release {
|
||||
keyAlias keystoreProperties['keyAlias']
|
||||
keyPassword keystoreProperties['keyPassword']
|
||||
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
||||
storePassword keystoreProperties['storePassword']
|
||||
}
|
||||
}
|
||||
release {
|
||||
keyAlias keystoreProperties['keyAlias']
|
||||
keyPassword keystoreProperties['keyPassword']
|
||||
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
||||
storePassword keystoreProperties['storePassword']
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
|
@ -98,12 +93,13 @@ android {
|
|||
//Other parameters
|
||||
// Enables resource shrinking
|
||||
shrinkResources = true
|
||||
// zipAlignEnabled true
|
||||
// zipAlignEnabled true
|
||||
//Enable the proguard
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
ndk {
|
||||
abiFilters 'arm64-v8a', 'x86_64'
|
||||
abiFilters 'armeabi-v7a','arm64-v8a','x86_64'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -113,11 +109,5 @@ flutter {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
// Import the Firebase BoM
|
||||
implementation platform('com.google.firebase:firebase-bom:32.8.1')
|
||||
|
||||
// TODO: Add the dependencies for Firebase products you want to use
|
||||
// When using the BoM, don't specify versions in Firebase dependencies
|
||||
implementation 'com.google.firebase:firebase-analytics-ktx'
|
||||
implementation 'com.google.firebase:firebase-crashlytics-ktx'
|
||||
}
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
}
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
#Flutter Wrapper
|
||||
-keep class io.flutter.app.** { *; }
|
||||
-keep class io.flutter.plugin.** { *; }
|
||||
-keep class io.flutter.util.** { *; }
|
||||
-keep class io.flutter.view.** { *; }
|
||||
-keep class io.flutter.** { *; }
|
||||
-keep class io.flutter.plugins.** { *; }
|
||||
#-keep class io.flutter.plugin.editing.** { *; }
|
||||
|
||||
##Firebase
|
||||
#-keep class com.google.firebase.** { *; }
|
||||
#-keep class com.firebase.** { *; }
|
||||
#-keep class org.apache.** { *; }
|
||||
#-keepnames class com.fasterxml.jackson.** { *; }
|
||||
#-keepnames class javax.servlet.** { *; }
|
||||
#-keepnames class org.ietf.jgss.** { *; }
|
||||
#-dontwarn org.w3c.dom.**
|
||||
#-dontwarn org.joda.time.**
|
||||
#-dontwarn org.shaded.apache.**
|
||||
#-dontwarn org.ietf.jgss.**
|
||||
#-keepattributes Signature
|
||||
#-keepattributes *Annotation*
|
||||
#-keepattributes EnclosingMethod
|
||||
#-keepattributes InnerClasses
|
||||
#-keep class androidx.lifecycle.DefaultLifecycleObserver
|
||||
|
||||
#Crashlytics
|
||||
-keepattributes *Annotation*
|
||||
# in order to provide the most meaningful crash reports, add the following line:
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
# If you are using custom exceptions, add this line so that custom exception types are skipped during obfuscation:
|
||||
#-keep public class * extends java.lang.Exception
|
||||
-keep class com.crashlytics.** { *; }
|
||||
-dontwarn com.crashlytics.**
|
|
@ -0,0 +1,7 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- The INTERNET permission is required for development. Specifically,
|
||||
the Flutter tool needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
|
@ -0,0 +1,7 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- The INTERNET permission is required for development. Specifically,
|
||||
the Flutter tool needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
|
@ -0,0 +1,7 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- The INTERNET permission is required for development. Specifically,
|
||||
the Flutter tool needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
|
@ -1,3 +1,16 @@
|
|||
buildscript {
|
||||
ext.kotlin_version = '1.7.10'
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:8.1.0'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
|
@ -15,4 +28,4 @@ subprojects {
|
|||
|
||||
tasks.register("clean", Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
org.gradle.jvmargs=-Xmx4G
|
||||
org.gradle.jvmargs=-Xmx1536M
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
android.defaults.buildfeatures.buildconfig=true
|
||||
android.nonTransitiveRClass=false
|
||||
android.nonFinalResIds=false
|
||||
android.nonFinalResIds=false
|
||||
|
|
|
@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
|
|||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip
|
||||
|
|
|
@ -1,28 +1,11 @@
|
|||
pluginManagement {
|
||||
def flutterSdkPath = {
|
||||
def properties = new Properties()
|
||||
file("local.properties").withInputStream { properties.load(it) }
|
||||
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
||||
return flutterSdkPath
|
||||
}
|
||||
settings.ext.flutterSdkPath = flutterSdkPath()
|
||||
include ':app'
|
||||
|
||||
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
|
||||
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
|
||||
def properties = new Properties()
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
assert localPropertiesFile.exists()
|
||||
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
|
||||
|
||||
plugins {
|
||||
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||
id "com.android.application" version "7.4.2" apply false
|
||||
id "org.jetbrains.kotlin.android" version "1.9.20" apply false
|
||||
id "com.google.gms.google-services" version "4.4.1" apply false
|
||||
id "com.google.firebase.crashlytics" version "2.9.9" apply false
|
||||
}
|
||||
|
||||
include ":app"
|
||||
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
||||
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: {{app_name}}
|
||||
name: my_app
|
||||
description: A new Flutter project.
|
||||
publish_to: 'none'
|
||||
version: 0.0.1
|
||||
version: 1.0.0+1
|
||||
environment:
|
||||
flutter: '>=3.13.0 <4.0.0'
|
||||
sdk: '>=3.0.0 <4.0.0'
|
||||
|
@ -16,40 +16,37 @@ dependencies:
|
|||
sdk: flutter
|
||||
|
||||
# Firebase
|
||||
firebase_analytics: ^10.10.4
|
||||
firebase_core: ^2.30.1
|
||||
firebase_crashlytics: ^3.5.4
|
||||
firebase_remote_config: ^4.4.4
|
||||
cloud_firestore: ^4.13.2
|
||||
firebase_core: ^2.23.0
|
||||
firebase_crashlytics: ^3.4.5
|
||||
|
||||
# Backend
|
||||
get_it: ^7.7.0
|
||||
get_it: ^7.6.4
|
||||
|
||||
# UI
|
||||
auto_size_text: ^3.0.0
|
||||
animated_list_plus: ^0.5.2
|
||||
cupertino_icons: ^1.0.8
|
||||
cupertino_icons: ^1.0.6
|
||||
flutter_form_builder: ^9.1.1
|
||||
enough_platform_widgets: ^1.0.0
|
||||
flutter_form_builder: ^9.2.1
|
||||
gap: ^3.0.1
|
||||
|
||||
# Utils
|
||||
flutter_screenutil: ^5.9.0
|
||||
flutter_svg: ^2.0.10+1
|
||||
flutter_svg: ^2.0.9
|
||||
form_builder_validators: ^9.1.0
|
||||
go_router: ^14.0.1
|
||||
go_router: ^12.1.1
|
||||
intl: ^0.18.1
|
||||
intl_utils: ^2.8.5
|
||||
|
||||
# Data
|
||||
envied: ^0.5.4+1
|
||||
envied: ^0.5.2
|
||||
fpdart: ^1.1.0
|
||||
hive: ^2.2.3
|
||||
hive_flutter: ^1.1.0
|
||||
json_annotation: ^4.9.0
|
||||
json_serializable: ^6.8.0
|
||||
json_annotation: ^4.8.1
|
||||
json_serializable: ^6.7.1
|
||||
|
||||
# Networking
|
||||
dio: ^5.4.3+1
|
||||
dio: ^5.3.4
|
||||
|
||||
# Logging
|
||||
talker: ^3.1.4
|
||||
|
@ -58,8 +55,7 @@ dependencies:
|
|||
# State management
|
||||
equatable: ^2.0.5
|
||||
informers: ^0.0.3+1
|
||||
provider: ^6.1.2
|
||||
veto: ^0.0.10
|
||||
provider: ^6.1.1
|
||||
|
||||
|
||||
|
||||
|
@ -68,13 +64,12 @@ dependencies:
|
|||
|
||||
dev_dependencies:
|
||||
# Generators
|
||||
build_runner: ^2.4.9
|
||||
envied_generator: ^0.5.4+1
|
||||
hive_generator: ^2.0.1
|
||||
build_runner: ^2.4.6
|
||||
envied_generator: ^0.5.2
|
||||
|
||||
# Analysis
|
||||
analyzer: ^6.4.1
|
||||
flutter_lints: ^3.0.2
|
||||
analyzer: ^5.13.0
|
||||
flutter_lints: ^3.0.1
|
||||
very_good_analysis: ^5.1.0
|
||||
|
||||
# Testing
|
||||
|
@ -82,19 +77,17 @@ dev_dependencies:
|
|||
sdk: flutter
|
||||
faker: ^2.1.0
|
||||
gherkin_unit_test: ^0.0.5
|
||||
mockito: ^5.4.4
|
||||
mockito: ^5.4.3
|
||||
|
||||
|
||||
# Bundling
|
||||
#dart run dependency_validator
|
||||
dependency_validator: ^3.2.3
|
||||
#dart run dart_code_metrics:metrics check-unused-files lib --disable-sunset-warning
|
||||
#dart run dart_code_metrics:metrics check-unused-files lib
|
||||
# dart_code_metrics: ^5.6.0
|
||||
flutter_flavorizr: ^2.2.3
|
||||
#dart run flutter_launcher_icons:main -f flutter_launcher_icons*
|
||||
flutter_flavorizr: ^2.2.1
|
||||
flutter_native_splash: ^2.3.6
|
||||
flutter_launcher_icons: ^0.13.1
|
||||
#dart run flutter_native_splash:create --flavors develop,prod
|
||||
flutter_native_splash: ^2.4.0
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue