Skip to content

Commit e3ed535

Browse files
authored
chore: update android config (#36)
1 parent 79e3b96 commit e3ed535

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

android/app/build.gradle.kts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1+
import java.util.Properties
2+
import java.io.FileInputStream
3+
14
plugins {
25
id("com.android.application")
36
id("kotlin-android")
47
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
58
id("dev.flutter.flutter-gradle-plugin")
69
}
710

11+
val keystoreProperties = Properties()
12+
val keystorePropertiesFile = rootProject.file("key.properties")
13+
14+
if (keystorePropertiesFile.exists()) {
15+
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
16+
}
17+
818
android {
9-
namespace = "lol.irhas.create_invoice"
19+
namespace = "lol.irhas"
1020
compileSdk = flutter.compileSdkVersion
1121
ndkVersion = "27.0.12077973"
1222

@@ -21,7 +31,7 @@ android {
2131

2232
defaultConfig {
2333
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24-
applicationId = "lol.irhas.create_invoice"
34+
applicationId = "lol.irhas"
2535
// You can update the following values to match your application needs.
2636
// For more information, see: https://flutter.dev/to/review-gradle-config.
2737
minSdk = flutter.minSdkVersion
@@ -30,6 +40,15 @@ android {
3040
versionName = flutter.versionName
3141
}
3242

43+
signingConfigs {
44+
create("release") {
45+
keyAlias = keystoreProperties["keyAlias"] as String?
46+
keyPassword = keystoreProperties["keyPassword"] as String?
47+
storeFile = keystoreProperties["storeFile"]?.let { file(it as String) }
48+
storePassword = keystoreProperties["storePassword"] as String?
49+
}
50+
}
51+
3352
buildTypes {
3453
release {
3554
// TODO: Add your own signing config for the release build.

android/app/src/main/kotlin/lol/irhas/create_invoice/MainActivity.kt renamed to android/app/src/main/kotlin/lol/irhas/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package lol.irhas.create_invoice
1+
package lol.irhas
22

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

lib/src/constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:flutter/material.dart';
22

3-
const kVersion = '0.0.4+4';
3+
const kVersion = '0.1.0+5';
44

55
const kPx = EdgeInsets.symmetric(horizontal: 16.0);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 0.0.4+4
19+
version: 0.1.0+5
2020

2121
environment:
2222
sdk: ^3.7.0

0 commit comments

Comments
 (0)