Skip to content

Commit

Permalink
chore: fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wangela committed Oct 28, 2023
1 parent 8197e28 commit d42f16d
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 27 deletions.
10 changes: 7 additions & 3 deletions ApiDemos/java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ plugins {
}

android {
compileSdkVersion 33
compileSdk 33

defaultConfig {
applicationId "com.example.mapdemo"
minSdkVersion 19
targetSdkVersion 33
minSdk 19
targetSdk 33
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildFeatures {
compose true
buildConfig = true
}
buildTypes {
release {
minifyEnabled false
Expand Down
3 changes: 1 addition & 2 deletions ApiDemos/java/app/src/gms/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mapdemo">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
Expand Down
3 changes: 1 addition & 2 deletions ApiDemos/java/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mapdemo">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<!--
The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
Expand Down
13 changes: 10 additions & 3 deletions ApiDemos/kotlin/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ plugins {
}

android {
compileSdkVersion 33
compileSdk 33
defaultConfig {
applicationId "com.example.kotlindemos"
minSdkVersion 19
targetSdkVersion 33
minSdk 19
targetSdk 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildFeatures {
buildConfig = true
}
buildTypes {
release {
minifyEnabled false
Expand All @@ -32,6 +35,10 @@ android {
versionNameSuffix "-gms"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
lintOptions {
abortOnError false
}
Expand Down
3 changes: 1 addition & 2 deletions ApiDemos/kotlin/app/src/gms/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.kotlindemos">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
Expand Down
3 changes: 1 addition & 2 deletions ApiDemos/kotlin/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.kotlindemos">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<!--
This app requires location permissions for the layers demo.
Expand Down
25 changes: 13 additions & 12 deletions tutorials/java/CurrentPlaceDetailsOnMap/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ plugins {
}

android {
compileSdkVersion 33
compileSdk 33
defaultConfig {
applicationId "com.example.currentplacedetailsonmap"
minSdkVersion 21
targetSdkVersion 33
minSdk 21
targetSdk 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildFeatures {
buildConfig = true
}
buildTypes {
debug {
Expand All @@ -27,9 +29,6 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.gms:play-services-maps:18.2.0'
implementation 'com.google.android.libraries.places:places:3.2.0'
Expand All @@ -38,9 +37,11 @@ dependencies {
}

secrets {
// To add your Maps API key to this project:
// 1. Open the root project's local.properties file
// 2. Add this line, where YOUR_API_KEY is your API key:
// MAPS_API_KEY=YOUR_API_KEY
defaultPropertiesFileName 'local.defaults.properties'
// Optionally specify a different file name containing your secrets.
// The plugin defaults to "local.properties"
propertiesFileName = "secrets.properties"

// A properties file containing default secret values. This file can be
// checked in version control.
defaultPropertiesFileName = 'local.defaults.properties'
}
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected void onCreate(Bundle savedInstanceState) {

// [START_EXCLUDE silent]
// Construct a PlacesClient
Places.initialize(getApplicationContext(), BuildConfig.MAPS_API_KEY);
Places.initialize(getApplicationContext(), BuildConfig.PLACES_API_KEY);
placesClient = Places.createClient(this);

// Construct a FusedLocationProviderClient.
Expand Down

0 comments on commit d42f16d

Please sign in to comment.