Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Configure FCM notification for iOS #2

Open
wants to merge 11 commits into
base: ankit/create-custom-feature-map-objects
Choose a base branch
from
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,4 @@ screenshots/
android/src/google/play/listings/
keywords/
iphone/metadata/**/keywords.txt
*.cache
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[Organic Maps](https://organicmaps.app) is a free Android & iOS offline maps app for travellers, tourists, drivers, hikers, and cyclists.
It uses crowd-sourced [OpenStreetMap](https://www.openstreetmap.org) data and is developed with love by the creators of **MapsWithMe** (later renamed to **Maps.Me**) and by our community.
No ads, no tracking, no data collection, no crapware. Your [donations](https://organicmaps.app/donate/) and positive reviews motivate and inspire us, thanks ❤️!
No ads, no tracking, no crapware. Your [donations](https://organicmaps.app/donate/) and positive reviews motivate and inspire us, thanks ❤️!

<p float="left">
<a href="https://apps.apple.com/app/organic-maps/id1567437057">
Expand Down Expand Up @@ -54,7 +54,6 @@ Organic Maps is free from trackers and other bad stuff:

- No ads
- No tracking
- No data collection
- No phoning home
- No annoying registration
- No mandatory tutorials
Expand Down
20 changes: 12 additions & 8 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:8.4.1'

if (googleFirebaseServicesEnabled) {
println('Building with Google Firebase Services')
classpath 'com.google.gms:google-services:4.4.1'
println('Building with Google Firebase Services')
if (googleFirebaseServicesEnabled) {
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'
classpath 'com.google.firebase:firebase-appdistribution-gradle:4.2.0'
} else {
Expand All @@ -46,8 +46,8 @@ repositories {

apply plugin: 'com.android.application'
apply from: 'secure.properties'
if (googleFirebaseServicesEnabled) {
apply plugin: 'com.google.gms.google-services'
if (googleFirebaseServicesEnabled) {
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.firebase.appdistribution'
}
Expand Down Expand Up @@ -82,7 +82,7 @@ def getCommitMessage() {
def osName = System.properties['os.name'].toLowerCase()

project.ext.appId = 'app.organicmaps'
project.ext.appName = 'Organic Maps'
project.ext.appName = 'DRIMS'

java {
toolchain {
Expand Down Expand Up @@ -263,7 +263,7 @@ android {
jniDebuggable true // Enable jni debug build
zipAlignEnabled true
signingConfig signingConfigs.debug
resValue 'string', 'app_name', 'Debug Organic Maps'
resValue 'string', 'app_name', 'DRIMS'
// Do not generate separate debug symbols for debug apps, because we don't distribute them.
ndk.debugSymbolLevel = 'none'

Expand Down Expand Up @@ -347,7 +347,10 @@ android {
}

dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
implementation 'com.google.firebase:firebase-messaging:24.0.0'
implementation 'androidx.activity:activity:1.8.0'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
implementation 'com.google.android.flexbox:flexbox:3.0.0'

// Google Play Location Services
//
Expand All @@ -361,16 +364,17 @@ dependencies {
webImplementation 'com.google.android.gms:play-services-location:21.2.0'
googleImplementation 'com.google.android.gms:play-services-location:21.2.0'
huaweiImplementation 'com.google.android.gms:play-services-location:21.2.0'

implementation platform('com.google.firebase:firebase-bom:33.1.2')
// Google Firebase Services
if (googleFirebaseServicesEnabled) {
// Import the BoM for the Firebase platform
implementation platform('com.google.firebase:firebase-bom:32.8.0')

// Add the dependencies for the Crashlytics and Analytics libraries
// When using the BoM, you don't specify versions in Firebase library dependencies
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-crashlytics-ndk'
}
implementation 'com.google.firebase:firebase-messaging'

// This line is added as a workaround for duplicate classes error caused by some outdated dependency:
// > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading