Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/lint-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ jobs:
- name: Run Android Lint
run: ./gradlew lint

- name: Upload SARIF for shared
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: shared/build/reports/lint-results.sarif
category: shared

- name: Upload SARIF for places-rx
uses: github/codeql-action/upload-sarif@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ secure.properties

# This covers new IDEs, like Antigravity
.vscode/
**/bin/
**/bin/
/secrets.properties
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,34 @@

# Maps Android Rx

# ⚠️ PROJECT ARCHIVED & DEPRECATED ⚠️

**This library is no longer maintained and has been officially archived.**

### Why is this project being retired?

Since the launch of this project, the Android ecosystem has largely transitioned from RxJava to
**Kotlin Coroutines and Flows**. In alignment with modern Android development practices,
maintenance effort has shifted to libraries that natively support these features.

### Alternatives and Migration

1. **Maps SDK for Android KTX:** We recommend using the
[Maps SDK for Android KTX](https://github.com/googlemaps/android-maps-ktx). This is the current
standard for idiomatic Kotlin development and provides native support for **Coroutines** and **Flow**.
2. **Bridging to RxJava:** If your codebase remains strictly RxJava-based, you can use the Maps KTX
library and convert the resulting Flows into Observables using the [Kotlinx Coroutines RxJava bridge](https://github.com/Kotlin/kotlinx.coroutines/tree/master/reactive/kotlinx-coroutines-rx3).

Check warning on line 30 in README.md

View check run for this annotation

In Solidarity / Inclusive Language

Match Found

Please consider an alternative to `master`. Possibilities include: `primary`, `main`, `leader`, `active`, `writer`
Raw output
/master/gi
3. **Source Access:** The source code for these Rx wrappers remains available in this repository for
reference or manual inclusion in your project. However, no further updates, bug fixes, or dependency
bumps will be performed.

---

### Final Maintenance Note

This project is being archived to provide clarity to the developer community and to ensure users are
directed toward the most active and supported tools for the Maps SDK.

## Description

This repository contains RxJava bindings for the [Maps SDK for Android](maps-sdk) and [Places SDK for Android](places-sdk).
Expand Down
29 changes: 16 additions & 13 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ plugins {

android {
lint {
sarifOutput = file("$buildDir/reports/lint-results.sarif")
sarifOutput = layout.buildDirectory.file("reports/lint-results.sarif").get().asFile
}

buildFeatures {
buildConfig = true
}

compileSdk = 35
compileSdk = libs.versions.compileSdk.get().toInt()
namespace = "com.google.maps.android.rx.demo"

defaultConfig {
applicationId = "com.google.maps.android.rx.demo"
minSdk = 24
targetSdk = 35
minSdk = libs.versions.minSdk.get().toInt()
targetSdk = libs.versions.targetSdk.get().toInt()
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand All @@ -49,36 +49,39 @@ android {
}

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

kotlinOptions {
jvmTarget = "1.8"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep the previous Java version, to avoid any issues?

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

dependencies {
// RxJava bindings for the Maps SDK
implementation(libs.mapsRx)
implementation(project(":maps-rx"))

// RxJava bindings for the Places SDK
implementation(libs.placesRx)
implementation(project(":places-rx"))

// It is recommended to also include the latest Maps SDK, Places SDK and RxJava so you
// have the latest features and bug fixes.
implementation(libs.playServicesMaps)
implementation(libs.places)
implementation(libs.rxJava)
implementation(libs.appCompat)
implementation(libs.activityKtx)
implementation(libs.lifecycleRuntimeKtx)
implementation(libs.material)
implementation(libs.rxLifecycle)
implementation(libs.mapsKtx)
implementation(libs.kotlinStdlib)

}

secrets {
propertiesFileName = "secrets.properties"
defaultPropertiesFileName = "local.defaults.properties"
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
}
}

This file was deleted.

6 changes: 4 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.maps.android.rx.demo">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
Expand Down
Loading
Loading