Skip to content

Commit

Permalink
Merge branch 'master' into impl-new-api
Browse files Browse the repository at this point in the history
  • Loading branch information
flikkr authored Aug 22, 2024
2 parents be053b8 + ab7e4a3 commit cdbc3ea
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 20 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
6 changes: 3 additions & 3 deletions flutter_google_places_sdk/example/lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ library constants;

import 'package:flutter/material.dart';

/// note: do NOT store your api key in here or in the code at all.
/// use an external source such as file or firebase remote config
const INITIAL_API_KEY = '';
/// Define your api in run args, such as
/// --dart-define API_KEY="<api_key>"
const INITIAL_API_KEY = String.fromEnvironment('API_KEY');

/// Initial value that is used for the locale
const INITIAL_LOCALE = Locale('en');
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
4 changes: 4 additions & 0 deletions flutter_google_places_sdk_android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.9

* Upgrading gradle kotlin and java versions to be compatible with Java 17

## 0.1.8

* Upgrading `flutter_google_places_sdk_platform_interface` to `0.2.7`
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
4 changes: 2 additions & 2 deletions flutter_google_places_sdk_android/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_google_places_sdk_android
description: A Flutter plugin for google places sdk that uses the native libraries on each platform
version: 0.1.8
version: 0.1.9
homepage: https://github.com/matanshukry/flutter_google_places_sdk/tree/master/flutter_google_places_sdk_android

environment:
Expand All @@ -15,7 +15,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mockito: ^5.3.2
mockito: ^5.4.4

flutter:
plugin:
Expand Down

0 comments on commit cdbc3ea

Please sign in to comment.