diff --git a/android/build.gradle b/android/build.gradle index 17a89c3d..75965ede 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -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() @@ -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' } diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 8eef069d..e23db122 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -22,7 +22,6 @@ def flutterVersionName = localProperties.getProperty("flutter.versionName") if (flutterVersionName == null) { flutterVersionName = "1.0" } - android { applicationId "co.paystack.flutterpaystack" compileSdk = 34 @@ -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 '../..' } \ No newline at end of file