Skip to content

Commit

Permalink
few fixes before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
matanshukry committed Aug 17, 2024
1 parent cc2abce commit 80f1c72
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
4 changes: 3 additions & 1 deletion flutter_google_places_sdk/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
namespace 'com.msh.flutter_google_places_sdk_example'
if (project.android.hasProperty("namespace")) {
namespace 'com.msh.flutter_google_places_sdk_example'
}

compileSdkVersion 34
ndkVersion "26.1.10909125"
Expand Down
4 changes: 4 additions & 0 deletions flutter_google_places_sdk/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ dependencies:
flutter_google_places_sdk:
path: ../../flutter_google_places_sdk

dependency_overrides:
flutter_google_places_sdk_android:
path: ../../flutter_google_places_sdk_android

dev_dependencies:
flutter_test:
sdk: flutter
Expand Down
30 changes: 16 additions & 14 deletions flutter_google_places_sdk_android/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.msh.flutter_google_places_sdk'
version '1.0-SNAPSHOT'
group = "com.msh.flutter_google_places_sdk"
version = "1.0-SNAPSHOT"

buildscript {
repositories {
Expand All @@ -8,40 +8,42 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:8.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath("com.android.tools.build:gradle:8.4.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
}
}

rootProject.allprojects {
allprojects {
repositories {
google()
mavenCentral()
}
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: "com.android.library"
apply plugin: "kotlin-android"

android {
namespace 'com.msh.flutter_google_places_sdk_example'
if (project.android.hasProperty("namespace")) {
namespace "com.msh.flutter_google_places_sdk"
}
compileSdkVersion 34

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

kotlinOptions {
jvmTarget = '17'
jvmTarget = JavaVersion.VERSION_17
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
main.java.srcDirs += "src/main/kotlin"
test.java.srcDirs += "src/test/kotlin"
}
defaultConfig {
minSdkVersion 21
minSdk = 21
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
Expand Down

0 comments on commit 80f1c72

Please sign in to comment.