Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
[submodule "kits/foresee-kit"]
path = kits/foresee-kit
url = git@github.com:mparticle-integrations/mparticle-android-integration-foresee.git
[submodule "kits/googleanalyticsfirebase-kit"]
path = kits/googleanalyticsfirebase-kit
url = git@github.com:mparticle-integrations/mparticle-android-integration-google-analytics-firebase.git
[submodule "kits/googleanalyticsfirebasega4-kit"]
path = kits/googleanalyticsfirebasega4-kit
url = git@github.com:mparticle-integrations/mparticle-android-integration-google-analytics-firebase-ga4.git
Expand Down
1 change: 1 addition & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ lint:
- scripts/install-start-emulator.sh
- kits/appsflyer/appsflyer-6/**
- kits/braze/braze-38/**
- kits/ga/ga-23/**
actions:
enabled:
- trunk-announce
Expand Down
25 changes: 25 additions & 0 deletions kits/ga/ga-23/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
> Google launched Google Analytics 4, a new way of analyzing iOS, Android, and Web data together. Google encourages all customers to [upgrade their Firebase instances](https://support.google.com/analytics/answer/9379599) so that Firebase data flows to Google Analytics 4. mParticle encourages all customers to also upgrade to the [new mParticle Android Firebase GA4 kit](https://github.com/mparticle-integrations/mparticle-android-integration-google-analytics-firebase-ga4). Please see the [mParticle GA4](https://docs.mparticle.com/integrations/google-analytics-4/event) docs for more information on upgrading.

## Google Analytics for Firebase Kit Integration

This repository contains the [Google Analytics for Firebase](https://firebase.google.com/docs/analytics/android/start) integration for the [mParticle Android SDK](https://github.com/mParticle/mparticle-android-sdk).

### Adding the integration

1. Add the kit dependency to your app's build.gradle:

```groovy
dependencies {
implementation 'com.mparticle:android-googleanalyticsfirebase-kit:5+'
}
```
2. Follow the mParticle Android SDK [quick-start](https://github.com/mParticle/mparticle-android-sdk), then rebuild and launch your app, and verify that you see `"Google Analytics for Firebase detected"` in the output of `adb logcat`.
3. Reference mParticle's integration docs below to enable the integration.

### Documentation

[Google Analytics for Firebase integration](http://docs.mparticle.com/integrations/firebase)

### License

[Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)
65 changes: 65 additions & 0 deletions kits/ga/ga-23/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
buildscript {
ext.kotlin_version = '2.0.20'
if (!project.hasProperty('version') || project.version.equals('unspecified')) {
project.version = '+'
}

repositories {
google()
mavenLocal()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:8.1.4'
classpath 'com.mparticle:android-kit-plugin:' + project.version
classpath 'com.google.gms:google-services:4.3.15'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

plugins {
id "org.sonarqube" version "3.5.0.2730"
id "org.jlleitschuh.gradle.ktlint" version "13.0.0"
}

sonarqube {
properties {
property "sonar.projectKey", "mparticle-android-integration-google-analytics-firebase"
property "sonar.organization", "mparticle"
property "sonar.host.url", "https://sonarcloud.io"
}
}

apply plugin: 'org.jlleitschuh.gradle.ktlint'
apply plugin: 'kotlin-android'
apply plugin: 'com.mparticle.kit'

android {
namespace 'com.mparticle.kits.googleanalyticsfirebase'
buildFeatures {
buildConfig = true
}
defaultConfig {
minSdkVersion 21
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
testOptions {
unitTests.all {
jvmArgs += ['--add-opens', 'java.base/java.lang=ALL-UNNAMED']
}
}
}

dependencies {
testImplementation files('libs/java-json.jar')
testImplementation files('libs/test-utils.aar')
testImplementation 'com.google.android.gms:play-services-measurement-api:22.1.0'
compileOnly 'com.google.firebase:firebase-analytics:22.1.0'
}
4 changes: 4 additions & 0 deletions kits/ga/ga-23/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
android.enableJetifier=true
android.useAndroidX=true
org.gradle.daemon=true
org.gradle.jvmargs=-Xmx2560m
Binary file added kits/ga/ga-23/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions kits/ga/ga-23/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
234 changes: 234 additions & 0 deletions kits/ga/ga-23/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading