123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- def localProperties = new Properties()
- def localPropertiesFile = rootProject.file('local.properties')
- if (localPropertiesFile.exists()) {
- localPropertiesFile.withReader('UTF-8') { reader ->
- localProperties.load(reader)
- }
- }
- 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.")
- }
- apply plugin: 'com.android.application'
- apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
- def keystorePropertiesFile = rootProject.file("key.properties")
- def keystoreProperties = new Properties()
- keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
- android {
- compileSdkVersion 33
- lintOptions {
- disable 'InvalidPackage'
- }
- defaultConfig {
- applicationId "com.yubo.flutterosc"
- minSdkVersion 21
- targetSdkVersion 33
- versionCode 10002
- versionName "1.2.1"
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- }
- signingConfigs {
- release {
- keyAlias keystoreProperties['keyAlias']
- keyPassword keystoreProperties['keyPassword']
- storeFile file(keystoreProperties['storeFile'])
- storePassword keystoreProperties['storePassword']
- }
- }
- buildTypes {
- release {
- signingConfig signingConfigs.release
- }
- }
- }
- flutter {
- source '../..'
- }
|