Skip to content

Commit

Permalink
Gradle update
Browse files Browse the repository at this point in the history
updated compile sdk to version 34
updated the target sdk to version 34
updated the java version to 1.8
updated the kotlin version to 1.8
  • Loading branch information
softdelaxe committed Nov 11, 2024
1 parent a5988a7 commit 0adc918
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
13 changes: 11 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ group 'co.paystack.flutterpaystack'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.7.20'
ext.kotlin_version = '1.8'
repositories {
mavenCentral()
google()
Expand All @@ -25,17 +25,26 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 32
compileSdkVersion 34

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
targetSdkVersion 34
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
versionCode 21
versionName "3.0.10"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = "1.8"
}
lintOptions {
disable 'InvalidPackage'
}
Expand Down
15 changes: 5 additions & 10 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def flutterVersionName = localProperties.getProperty("flutter.versionName")
if (flutterVersionName == null) {
flutterVersionName = "1.0"
}

android {
applicationId "co.paystack.flutterpaystack"
compileSdk = 34
Expand All @@ -34,29 +33,25 @@ android {
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.softdelaxe.rent24"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdk = 16
targetSdk = 34
versionCode = flutterVersionCode.toInteger()
versionName = flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "1.8" // Ensure this is set to 1.8 to match Java compatibility
}

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
}
}
}
}



flutter {
source '../..'
}

0 comments on commit 0adc918

Please sign in to comment.