Skip to content

Commit

Permalink
refactor : update gradle build version
Browse files Browse the repository at this point in the history
  • Loading branch information
liodali committed May 19, 2023
1 parent e263a8e commit a24aac1
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ build/
/example/lib/src/test_bottom_nav/app_with_bottom_nav.dart
/example/.env
/example/pubspec.lock
pubspec.lock
pubspec.lock
.vscode/**
22 changes: 18 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ group 'hamza.dali.flutter_osm_plugin'
version '1.0'

buildscript {
ext.kotlin_version = '1.7.20'
ext.kotlin_version = '1.8.0'
repositories {
google()
mavenCentral()
Expand All @@ -28,14 +28,15 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'

android {
compileSdkVersion 32
compileSdk 33

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
minSdkVersion 19
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
Expand All @@ -44,14 +45,25 @@ android {
buildFeatures {
viewBinding true
}
compileOptions {
coreLibraryDesugaringEnabled true
// Sets Java compatibility to Java 8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
dependencies {

def coroutines_version ="1.6.1"

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.6.0-rc01'
implementation 'androidx.appcompat:appcompat:1.7.0-alpha02'
//implementation 'androidx.core:core-ktx:1.9.0'
//implementation 'androidx.legacy:legacy-support-v4:1.0.0'
// Retrofit and relevant converters
Expand All @@ -72,6 +84,8 @@ dependencies {

implementation 'org.osmdroid:osmdroid-android:6.1.13'
implementation 'com.github.MKergall:osmbonuspack:6.9.0'
implementation 'com.google.android.material:material:1.7.0'
implementation 'com.google.android.material:material:1.9.0'

coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
}

7 changes: 4 additions & 3 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,17 @@ android {
signingConfig signingConfigs.debug
}
}
namespace 'hamza.dali.flutter_osm_plugin_example'
}

flutter {
source '../..'
}

dependencies {
testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
def multidex_version = "2.0.1"
implementation "androidx.multidex:multidex:$multidex_version"
}
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.android.tools.build:gradle:7.4.2'
}
}

Expand Down
3 changes: 3 additions & 0 deletions example/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ android.enableR8=true
org.gradle.jvmargs=-Xmx1024M -Dkotlin.daemon.jvm.options\="-Xmx1536M"
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false

0 comments on commit a24aac1

Please sign in to comment.