Add Android APK signing
This commit is contained in:
		
							parent
							
								
									bf0078f2e9
								
							
						
					
					
						commit
						5f56ef3068
					
				
					 3 changed files with 19 additions and 4 deletions
				
			
		| 
						 | 
					@ -1,3 +1,6 @@
 | 
				
			||||||
 | 
					v2.7.3
 | 
				
			||||||
 | 
					Added Android APK signing.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
v2.7.2
 | 
					v2.7.2
 | 
				
			||||||
Fixed alignment of station names in train screen.
 | 
					Fixed alignment of station names in train screen.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
 | 
				
			||||||
apply plugin: 'kotlin-android'
 | 
					apply plugin: 'kotlin-android'
 | 
				
			||||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
 | 
					apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def keystoreProperties = new Properties()
 | 
				
			||||||
 | 
					def keystorePropertiesFile = rootProject.file('key.properties')
 | 
				
			||||||
 | 
					if (keystorePropertiesFile.exists()) {
 | 
				
			||||||
 | 
					    keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
android {
 | 
					android {
 | 
				
			||||||
    compileSdkVersion 31
 | 
					    compileSdkVersion 31
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -50,11 +56,17 @@ android {
 | 
				
			||||||
        versionName flutterVersionName
 | 
					        versionName flutterVersionName
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    signingConfigs {
 | 
				
			||||||
 | 
					        release {
 | 
				
			||||||
 | 
					            keyAlias keystoreProperties['keyAlias']
 | 
				
			||||||
 | 
					            keyPassword keystoreProperties['keyPassword']
 | 
				
			||||||
 | 
					            storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
 | 
				
			||||||
 | 
					            storePassword keystoreProperties['storePassword']
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    buildTypes {
 | 
					    buildTypes {
 | 
				
			||||||
        release {
 | 
					        release {
 | 
				
			||||||
            // TODO: Add your own signing config for the release build.
 | 
					            signingConfig signingConfigs.release
 | 
				
			||||||
            // Signing with the debug keys for now, so `flutter run --release` works.
 | 
					 | 
				
			||||||
            signingConfig signingConfigs.debug
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,7 @@ description: O aplicație de vizualizare a datelor puse la dispoziție de Inform
 | 
				
			||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
 | 
					# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
 | 
				
			||||||
# Read more about iOS versioning at
 | 
					# Read more about iOS versioning at
 | 
				
			||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
 | 
					# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
 | 
				
			||||||
version: 2.7.2
 | 
					version: 2.7.3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
environment:
 | 
					environment:
 | 
				
			||||||
  sdk: ">=2.12.0 <3.0.0"
 | 
					  sdk: ">=2.12.0 <3.0.0"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue