Skip to content
Merged
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
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
[submodule "kits/leanplum-kit"]
path = kits/leanplum-kit
url = git@github.com:mparticle-integrations/mparticle-android-integration-leanplum.git
[submodule "kits/localytics-kit"]
path = kits/localytics-kit
url = git@github.com:mParticle-integrations/mparticle-android-integration-localytics.git
[submodule "kits/onetrust-kit"]
path = kits/onetrust-kit
url = git@github.com:mparticle-integrations/mparticle-android-integration-onetrust.git
Expand Down
1 change: 1 addition & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ lint:
- kits/ga4/ga4-23/**
- kits/kochava/kochava-5/**
- kits/rokt/rokt/**
- kits/localytics/localytics-6/**
actions:
enabled:
- trunk-announce
Expand Down
1 change: 0 additions & 1 deletion kits/localytics-kit
Submodule localytics-kit deleted from bc9567
32 changes: 32 additions & 0 deletions kits/localytics/localytics-6/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## Localytics Kit Integration

This repository contains the [Localytics](https://www.localytics.com) integration for the [mParticle Android SDK](https://github.com/mParticle/mparticle-android-sdk).

### Adding the integration

1. The Localytics Kit requires that you add Localytics' Maven server to your buildscript:

```
repositories {
maven { url 'https://maven.localytics.com/public' }
...
}
```

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

```groovy
dependencies {
implementation 'com.mparticle:android-localytics-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 `"Localytics detected"` in the output of `adb logcat`.
3. Reference mParticle's integration docs below to enable the integration.

### Documentation

[Localytics integration](https://docs.mparticle.com/integrations/localytics/event/)

### License

[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)
69 changes: 69 additions & 0 deletions kits/localytics/localytics-6/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
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 "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-localytics"
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.localytics'
compileSdk 33
buildFeatures {
buildConfig = true
}
defaultConfig {
minSdkVersion 21
targetSdk 33
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
testOptions {
unitTests.all {
jvmArgs += ['--add-opens', 'java.base/java.lang=ALL-UNNAMED']
}
}
}
repositories {
maven { url 'https://maven.localytics.com/public' }
mavenCentral()
}

dependencies {
api 'com.localytics.androidx:library:6.3.7'
compileOnly 'androidx.appcompat:appcompat:1.6.1'
testImplementation files('libs/java-json.jar')
}
4 changes: 4 additions & 0 deletions kits/localytics/localytics-6/consumer-proguard.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are the proguard rules specified by the Localyticd SDK's documentation

-keep class com.localytics.android.** { *; }
-keepattributes JavascriptInterface
4 changes: 4 additions & 0 deletions kits/localytics/localytics-6/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 not shown.
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/localytics/localytics-6/gradlew

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

Loading
Loading