/
opt
/
canhelp
/
apps
/
mobile
/
android
/
app
/
/opt/canhelp/apps/mobile/android/app
mkdir
upload
Name
Size
Mode
Actions
src/
-
0755
rm
build.gradle.kts
1895
0644
edit
dl
rm
google-services.json
670
0644
edit
dl
rm
Edit:
/opt/canhelp/apps/mobile/android/app/build.gradle.kts
(1895B)
import java.io.FileInputStream import java.util.Properties plugins { id("com.android.application") id("kotlin-android") // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id("dev.flutter.flutter-gradle-plugin") } if (file("google-services.json").exists()) { apply(plugin = "com.google.gms.google-services") } val keyPropertiesFile = rootProject.file("key.properties") val keyProperties = Properties() if (keyPropertiesFile.exists()) { keyProperties.load(FileInputStream(keyPropertiesFile)) } android { namespace = "gr.canhelp.app" compileSdk = flutter.compileSdkVersion ndkVersion = flutter.ndkVersion compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = JavaVersion.VERSION_17.toString() } signingConfigs { create("release") { keyAlias = keyProperties["keyAlias"] as String keyPassword = keyProperties["keyPassword"] as String storeFile = file(keyProperties["storeFile"] as String) storePassword = keyProperties["storePassword"] as String } } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "gr.canhelp.app" // You can update the following values to match your application needs. // For more information, see: https://flutter.dev/to/review-gradle-config. minSdk = flutter.minSdkVersion targetSdk = flutter.targetSdkVersion versionCode = flutter.versionCode versionName = flutter.versionName } buildTypes { release { signingConfig = signingConfigs.getByName("release") } } } flutter { source = "../.." }
Save
cmd:
run