Skip to content

Commit

Permalink
Signed the app
Browse files Browse the repository at this point in the history
  • Loading branch information
Vustron committed Nov 17, 2023
1 parent 672e2f7 commit 2d679b1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
27 changes: 20 additions & 7 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
namespace "com.example.my_app"
compileSdkVersion flutter.compileSdkVersion
Expand Down Expand Up @@ -52,13 +58,20 @@ android {
versionName flutterVersionName
}

buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}

}

flutter {
Expand Down
2 changes: 1 addition & 1 deletion lib/auth/signin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class _SignInState extends State<SignIn> {
TextButton(
onPressed: () => {},
child: Text(
'Ver.2.2 \u00A9 Made by Vustron Vustronus 2023',
'Ver.2.3 \u00A9 Made by Vustron Vustronus 2023',
style: GoogleFonts.zenDots(
fontSize: 7.0,
fontWeight: FontWeight.bold,
Expand Down
2 changes: 1 addition & 1 deletion lib/auth/signup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class _SignUpState extends State<SignUp> {
TextButton(
onPressed: () => {},
child: Text(
'Ver.2.2 \u00A9 Made by Vustron Vustronus 2023',
'Ver.2.3 \u00A9 Made by Vustron Vustronus 2023',
style: GoogleFonts.zenDots(
fontSize: 7.0,
fontWeight: FontWeight.bold,
Expand Down
2 changes: 1 addition & 1 deletion lib/components/worldtimeContent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class _WorldTimeContentState extends State<WorldTimeContent> {
TextButton(
onPressed: () => {},
child: Text(
'Ver.2.2 \u00A9 Made by Vustron Vustronus 2023',
'Ver.2.3 \u00A9 Made by Vustron Vustronus 2023',
style: GoogleFonts.zenDots(
fontSize: 7.0,
fontWeight: FontWeight.bold,
Expand Down

0 comments on commit 2d679b1

Please sign in to comment.