Skip to content

Commit

Permalink
feat: removed v3
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoso committed Sep 15, 2023
1 parent ca8c3a8 commit 7923f0a
Show file tree
Hide file tree
Showing 19 changed files with 7 additions and 259 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@ jobs:
echo "Creating tar for generated docs"
cd $GITHUB_WORKSPACE/maps-utils-ktx/build/documentation && tar cvf ~/maps-utils-docs.tar .
cd $GITHUB_WORKSPACE/maps-ktx/build/documentation && tar cvf ~/maps-docs.tar .
cd $GITHUB_WORKSPACE/maps-v3-ktx/build/documentation && tar cvf ~/maps-v3-docs.tar .
cd $GITHUB_WORKSPACE/maps-utils-v3-ktx/build/documentation && tar cvf ~/maps-utils-v3-docs.tar .
echo "Unpacking tar into gh-pages branch"
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
cd $GITHUB_WORKSPACE && git checkout gh-pages && tar xvf ~/maps-docs.tar && tar xvf ~/maps-utils-docs.tar && tar xvf ~/maps-v3-docs.tar && tar xvf ~/maps-utils-v3-docs.tar
cd $GITHUB_WORKSPACE && git checkout gh-pages && tar xvf ~/maps-docs.tar && tar xvf ~/maps-utils-docs.tar
# Commit changes and create a PR
- name: PR Changes
Expand Down
18 changes: 0 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,6 @@ dependencies {
}
```

(**Deprecated**) ~Alternatively, if you are using the Maps SDK through the standalone V3 BETA distribution:~

```groovy
dependencies {
// KTX for the Maps SDK for Android V3 BETA Library
implementation 'com.google.maps.android:maps-v3-ktx:3.4.0'
// KTX for the Maps SDK for Android V3 BETA Utility Library
implementation 'com.google.maps.android:maps-utils-v3-ktx:3.4.0'
// It is recommended to also include the latest Maps SDK and/or Utility Library versions
// as well to ensure that you have the latest features and bug fixes.
implementation 'com.google.android.libraries.maps:maps:3.4.0-beta'
implementation 'com.google.maps.android:android-maps-utils-v3:<latest-version>'
}
```

_**Note**_: The Beta version of the SDK is deprecated and scheduled for decommissioning. A future version of the SDK will provide similar support for Beta features. See the [release notes](https://developers.google.com/maps/documentation/android-sdk/releases#2021-08-18) for more information.

## Example Usage
Expand Down
32 changes: 3 additions & 29 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ buildscript {

ext.deps = [
'androidMapsUtils' : [
'gms': "com.google.maps.android:android-maps-utils:$versions.androidMapsUtils",
'v3' : "com.google.maps.android:android-maps-utils-v3:$versions.androidMapsUtils"
'gms': "com.google.maps.android:android-maps-utils:$versions.androidMapsUtils"
],
'androidx' : [
'appcompat': "androidx.appcompat:appcompat:$versions.androidx.appcompat",
Expand Down Expand Up @@ -80,9 +79,7 @@ buildscript {

ext.projectArtifactId = { project ->
if (project.name == 'maps-utils-ktx' ||
project.name == 'maps-ktx' ||
project.name == 'maps-v3-ktx' ||
project.name == 'maps-utils-v3-ktx') {
project.name == 'maps-ktx') {
return project.name
} else {
return null
Expand Down Expand Up @@ -224,30 +221,7 @@ subprojects { project ->
}


task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}

/**
* This task will copy all of the source code in this module into the `maps-v3-ktx` module
* and change its imports from the Maps SDK on Play Services to the Standalone V3 Beta Maps SDK.
*/
task copyGmsToV3Beta(type: Copy) {
from 'maps-ktx/src'
into 'maps-v3-ktx/src'
filter { line ->
line.replace('com.google.android.gms.maps', 'com.google.android.libraries.maps')
}
}

/**
* This task will copy all of the source code in this module into the `maps-v3-ktx` module
* and change its imports from the Maps SDK on Play Services to the Standalone V3 Beta Maps SDK.
*/
task copyGmsUtilsToV3Beta(type: Copy) {
from 'maps-utils-ktx/src'
into 'maps-utils-v3-ktx/src'
filter { line ->
line.replace('com.google.android.gms.maps', 'com.google.android.libraries.maps')
}
}
4 changes: 1 addition & 3 deletions maps-ktx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ android {
freeCompilerArgs += '-Xexplicit-api=strict'
jvmTarget = "1.8"
}
namespace 'com.google.maps.android.v3.ktx'
namespace 'com.google.maps.android.ktx'
}

preBuild.dependsOn(rootProject.tasks.copyGmsToV3Beta)

dependencies {
implementation deps.kotlin
implementation deps.kotlinxCoroutines
Expand Down
4 changes: 2 additions & 2 deletions maps-ktx/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright 2020 Google Inc.
~ Copyright 2023 Google Inc.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
Expand All @@ -14,4 +14,4 @@
~ limitations under the License.
~
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" />
<manifest/>
2 changes: 0 additions & 2 deletions maps-utils-ktx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ android {
namespace 'com.google.maps.android.ktx.utils'
}

preBuild.dependsOn(rootProject.tasks.copyGmsUtilsToV3Beta)

dependencies {
implementation deps.kotlin
api deps.androidMapsUtils.gms
Expand Down
3 changes: 0 additions & 3 deletions maps-utils-v3-ktx/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions maps-utils-v3-ktx/README.md

This file was deleted.

61 changes: 0 additions & 61 deletions maps-utils-v3-ktx/build.gradle

This file was deleted.

Empty file.
21 changes: 0 additions & 21 deletions maps-utils-v3-ktx/proguard-rules.pro

This file was deleted.

1 change: 0 additions & 1 deletion maps-utils-v3-ktx/src/main/AndroidManifest.xml

This file was deleted.

3 changes: 0 additions & 3 deletions maps-v3-ktx/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions maps-v3-ktx/README.md

This file was deleted.

57 changes: 0 additions & 57 deletions maps-v3-ktx/build.gradle

This file was deleted.

Empty file removed maps-v3-ktx/consumer-rules.pro
Empty file.
21 changes: 0 additions & 21 deletions maps-v3-ktx/proguard-rules.pro

This file was deleted.

17 changes: 0 additions & 17 deletions maps-v3-ktx/src/main/AndroidManifest.xml

This file was deleted.

2 changes: 0 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
include ':app'
include ':maps-ktx'
include ':maps-utils-ktx'
include ':maps-v3-ktx'
rootProject.name='android-maps-ktx'
include ':maps-utils-v3-ktx'

0 comments on commit 7923f0a

Please sign in to comment.