What extensions do I need?

I know you’re working on a better way of handling android extensions but I have a problem with the dependencies atm. Really dont understand which ones I have and which ones I need.

I have these atm:

https://api.playfab.com/sdks/download/defold,
https://github.com/defold/extension-firebase/archive/master.zip,
https://github.com/defold/extension-firebase-core/archive/master.zip,
https://github.com/defold/extension-gps/archive/master.zip,
https://github.com/AGulev/defold-sharing/archive/master.zip,
https://github.com/defold/extension-facebook/archive/2.2.7.zip,
https://github.com/subsoap/defos/archive/master.zip,
https://github.com/defold/extension-iap/archive/master.zip
,https://github.com/defold/extension-push/archive/master.zip,

But in the push extension documents the dependencies are these:

https://github.com/defold/android-base-extensions/releases/download/1.0.0/firebase-core-16.0.8.zip,
https://github.com/defold/android-base-extensions/releases/download/1.0.0/firebase-messaging-17.3.4.zip,
https://github.com/defold/android-base-extensions/releases/download/1.0.0/gps-base-16.0.1.zip,
https://github.com/defold/android-base-extensions/releases/download/1.0.0/gps-measurement-16.4.0.zip,
https://github.com/defold/android-base-extensions/releases/download/1.0.0/support-v4-26.1.0.zip

However I remove or add these I get build errors (duplicate resources or things missing). Really dont understand what to do here and what do I really need.

Some help please?

1 Like

@AJirenius we are releasing Gradle support on Monday. It is currently available in the beta.

Let me go through your dependencies and give some advice tomorrow. With Gradle support in place there is no longer any need for the base extensions. Gradle will take care of these transitive dependencies and include the correct versions in your application.

2 Likes

I updated the dependencies section in the readme for extension-push to reflect the upcoming support for Gradle.

We added the required .gradle file to version 2.4.0 of extension-facebook.

1 Like

Here’s my recommendation:

I noticed that you are not locking down some of your extensions to a specific release. You really should at all times depend on versioned releases instead of the latest master. Here are my recommendations:

This gives us a final list of dependencies like this:

I put all of these into an empty project and managed to bundle it to Android using the latest beta and the stage version of the build server.

6 Likes

This is some really great advice, thank you very much.
I will start working on this and do some testing even if I do believe I will wait until release this monday. Thank you for spending the time on this!

1 Like