hansemannn / titanium-firebase-core

Use the Firebase Core SDK in the Titanium SDK 🚀
Other
31 stars 23 forks source link

Android: Update dependencies #53

Closed m1ga closed 3 years ago

m1ga commented 4 years ago

Update dependencies:

hansemannn commented 4 years ago

Any notable features that we can add?

m1ga commented 4 years ago

Doesn't look like it. Not sure what the firebase-common update does but it is only a 0.0.1 one.

IID changelog:

https://firebase.google.com/support/release-notes/android#iid_v20-2-3 and search for "Firebase Instance ID version" to find all changes :)

m1ga commented 4 years ago

@hansemannn: done, please test it, then it is ready to be released

hansemannn commented 4 years ago

I currently dont have much capacity to test. If someone can jump in to validate common scenarios, I'd appreciate it!

hansemannn commented 4 years ago

@m1ga Can you try to use BoM here? Then, if this is working and merged, we can move all others to a version-stable Firebase environment as well.

implementation'com.google.firebase:firebase-bom:25.12.0'

implementation 'com.google.firebase:firebase-iid'
implementation 'com.google.firebase:firebase-common'

This way, we only have to maintain the BoM version in each repo and it will find the latest matching version for itself. Reference: https://firebase.google.com/docs/android/setup#firebase-bom

m1ga commented 4 years ago

@hansemannn I'll test that. Looks easier to maintain!

m1ga commented 4 years ago

@hansemannn it "works" but you'll have to add

dependencies {
    implementation platform('com.google.firebase:firebase-bom:25.12.0')
}

to the app build.gradle. Otherwise it will throw a gradle compile error. Updated the push module and tested both of them together.

Is that something we can ask a user to add? Would add it to the core readme

hansemannn commented 4 years ago

Oh, really? I think it's okay! And (in theory) it could even allow users to hotpatch the BoM themselves, couldn't they? But lets definitely make sure to bump the major version and add a solid readme note.

m1ga commented 4 years ago

removed BoM see https://github.com/hansemannn/titanium-firebase-cloud-messaging/pull/115#issuecomment-716028881 for more info

Tests still work fine with this version and the FCM from the other PR

m1ga commented 3 years ago

firebase.core-android-6.0.1.zip

m1ga commented 3 years ago

@hansemannn you can merge this too. Only tested this in combination with the new fcm