Skip to content

Commit

Permalink
Fix Action(2)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-sumiya committed Aug 24, 2024
1 parent de4d381 commit 657ad4c
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
Expand All @@ -6,20 +12,19 @@ if (localPropertiesFile.exists()) {
}
}

plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new FileNotFoundException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

android {
namespace = "com.example.hitomi_search_plus"
namespace "com.example.hitomi_search_plus"
compileSdkVersion flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
ndkVersion flutter.ndkVersion

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
Expand All @@ -36,9 +41,9 @@ android {
}

defaultConfig {
applicationId = "com.example.hitomi_search_plus"
minSdk = 29 // Android 10
targetSdk = flutter.targetSdkVersion
applicationId "com.example.hitomi_search_plus"
minSdkVersion 29
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
ndk {
Expand All @@ -59,5 +64,5 @@ android {
}

flutter {
source = "../.."
source '../..'
}

0 comments on commit 657ad4c

Please sign in to comment.