android release 1
This commit is contained in:
@@ -67,16 +67,16 @@ android {
|
||||
}
|
||||
|
||||
|
||||
flavorDimensions "app"
|
||||
flavorDimensions "fcs"
|
||||
productFlavors {
|
||||
prod {
|
||||
dimension "app"
|
||||
dimension "fcs"
|
||||
applicationId "com.mokkon.fcs"
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
}
|
||||
dev {
|
||||
dimension "app"
|
||||
dimension "fcs"
|
||||
applicationId "com.mokkon.fcs.dev"
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
@@ -100,11 +100,21 @@ android {
|
||||
// useProguard false
|
||||
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
applicationVariants.all { variant ->
|
||||
variant.outputs.all {
|
||||
def newName
|
||||
// if (buildType == 'debug'){
|
||||
// newName = "app-${variant.getFlavorName()}-debug.apk"
|
||||
// } else {
|
||||
newName = "${variant.productFlavors[0].dimension}_${variant.productFlavors[0].name}_v${defaultConfig.versionName}+${defaultConfig.versionCode}.apk"
|
||||
// }
|
||||
outputFileName = newName
|
||||
}
|
||||
}
|
||||
}
|
||||
debug {
|
||||
debuggable true
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
38
android/app/src/prod/AndroidManifest.xml
Normal file
38
android/app/src/prod/AndroidManifest.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
|
||||
|
||||
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
|
||||
calls FlutterMain.startInitialization(this); in its onCreate method.
|
||||
In most cases you can leave this as-is, but you if you want to provide
|
||||
additional functionality it is fine to subclass or reimplement
|
||||
FlutterApplication and put your custom class here. -->
|
||||
<application
|
||||
android:name=".Application"
|
||||
android:exported="true"
|
||||
android:label="@string/app_name"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:launchMode="singleTop"
|
||||
android:theme="@style/LaunchTheme"
|
||||
android:hardwareAccelerated="true"
|
||||
android:exported="true"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
<!-- This keeps the window background of the activity showing
|
||||
until Flutter renders its first frame. It can be removed if
|
||||
there is no splash screen (such as the default splash screen
|
||||
defined in @style/LaunchTheme). -->
|
||||
<meta-data
|
||||
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
|
||||
android:value="true" />
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="FLUTTER_NOTIFICATION_CLICK" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
</manifest>
|
||||
4
android/app/src/prod/res/values/strings.xml
Normal file
4
android/app/src/prod/res/values/strings.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">FCS Logistics</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user