Skip to content

Commit

Permalink
RMET-3608 - Prepare to release version 5.0.0-OS14 (#41)
Browse files Browse the repository at this point in the history
* RMET-3608 FB Analytics - Update dependency to Firebase Analytics Android SDK (#40)

* feat: use Firebase Android BOM library to set the version of FB Analytics

Context: According to the documentation, this is the recommended way of controlling Firebase library versions. This way, using the Firebase Android BOM, an app with multiple Firebase Android libraries will always use compatible versions of these libraries.

References: https://outsystemsrd.atlassian.net/browse/RMET-3608

* fix: declare Firebase dependencies in build.gradle file

References: https://outsystemsrd.atlassian.net/browse/RMET-3608

* test: use framework to set firebase-analytics version

References: https://outsystemsrd.atlassian.net/browse/RMET-3608

* refactor: declare Firebase dependencies in build.gradle file

References: https://outsystemsrd.atlassian.net/browse/RMET-3608

* fix: enable Kotlin

Context: This is necessary for MABS 9. We currently say that the current version of the plugin works with MABS 9 and MAS 10, but it actually doesn't work with MABS 9 because we use Kotlin code but do not enable the Kotlin plugin.

References: https://outsystemsrd.atlassian.net/browse/RMET-3608

* test: enable AndroidX

* chore: revert previous commit

* fix: enable Kotlin

Context: This is necessary for MABS 9. We currently say that the current version of the plugin works with MABS 9 and MAS 10, but it actually doesn't work with MABS 9 because we use Kotlin code but do not enable the Kotlin plugin.

References: https://outsystemsrd.atlassian.net/browse/RMET-3608

* fix: revert previous commit

* test: include FB Analytics using framework

* test: enable Kotlin

* refactor: include FB dependencies in build.gradle

References: https://outsystemsrd.atlassian.net/browse/RMET-3608

* chore: revert previous commit that added Kotlin

* chore: update changelog

https://outsystemsrd.atlassian.net/browse/RMET-3608

* chore(release): raise to version 5.0.0-OS14

References: https://outsystemsrd.atlassian.net/browse/RMET-3608
  • Loading branch information
alexgerardojacinto committed Sep 17, 2024
1 parent a35cc38 commit 36e273b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

The changes documented here do not include those from the original repository.

## 5.0.0-OS14

- Android | Update dependency to Firebase Analytics Android library (https://outsystemsrd.atlassian.net/browse/RMET-3608).

## 5.0.0-OS13

- Fix: Make `ANALYTICS_COLLECTION_ENABLED` configurable (https://outsystemsrd.atlassian.net/browse/RMET-3503).

## 5.0.0-OS12

- Chore: Update `FirebaseAnalytics` iOS pod to version `10.23.0` (https://outsystemsrd.atlassian.net/browse/RMET-3274).

## 5.0.0-OS11
Expand Down
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ buildscript {
}
}

dependencies {
implementation platform('com.google.firebase:firebase-bom:33.2.0')
implementation("com.google.firebase:firebase-analytics")
}

// use postBuildExtras to make sure the plugin is applied after
// cdvPluginPostBuildExtras. Therefore if googleServices is added
// to cdvPluginPostBuildExtras somewhere else, the plugin execution
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-firebase-analytics",
"version": "5.0.0-OS13",
"version": "5.0.0-OS14",
"description": "Cordova plugin for Firebase Analytics",
"cordova": {
"id": "cordova-plugin-firebase-analytics",
Expand Down
4 changes: 1 addition & 3 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-firebase-analytics"
version="5.0.0-OS13">
version="5.0.0-OS14">

<name>FirebaseAnalyticsPlugin</name>
<description>Cordova plugin for Firebase Analytics</description>
Expand Down Expand Up @@ -82,7 +82,6 @@ xmlns:android="http://schemas.android.com/apk/res/android"
</platform>

<platform name="android">
<preference name="ANDROID_FIREBASE_ANALYTICS_VERSION" default="21.1.1"/>

<hook type="after_prepare" src="hooks/android/androidCopyPreferences.js" />

Expand All @@ -103,7 +102,6 @@ xmlns:android="http://schemas.android.com/apk/res/android"

<dependency id="cordova-support-android-plugin" version="~1.0.0"/>

<framework src="com.google.firebase:firebase-analytics:$ANDROID_FIREBASE_ANALYTICS_VERSION" />
<framework src="build.gradle" custom="true" type="gradleReference" />

<source-file src="src/android/com/outsystems/firebase/analytics/FirebaseAnalyticsPlugin.java" target-dir="src/com/outsystems/plugins/firebase/analytics/" />
Expand Down

0 comments on commit 36e273b

Please sign in to comment.