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 @@ -4,9 +4,6 @@
[submodule "kits/adobemedia-kit"]
path = kits/adobemedia-kit
url = git@github.com:mparticle-integrations/mparticle-android-integration-adobe-media.git
[submodule "kits/apptentive-kit"]
path = kits/apptentive-kit
url = git@github.com:mparticle-integrations/mparticle-android-integration-apptentive.git
[submodule "kits/apptimize-kit"]
path = kits/apptimize-kit
url = git@github.com:mparticle-integrations/mparticle-android-integration-apptimize.git
Expand Down
1 change: 1 addition & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ lint:
- "**/gradlew"
- scripts/install-start-emulator.sh
- kits/adjust/adjust-5/**
- kits/apptentive/apptentive-6/**
- kits/appsflyer/appsflyer-6/**
- kits/braze/braze-38/**
- kits/ga/ga-23/**
Expand Down
1 change: 0 additions & 1 deletion kits/apptentive-kit
Submodule apptentive-kit deleted from 09a489
31 changes: 31 additions & 0 deletions kits/apptentive/apptentive-6/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## Apptentive Kit Integration

This repository contains the [Apptentive](https://www.apptentive.com/) 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-apptentive-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 `"Apptentive detected"` in the output of `adb logcat`.
3. Reference mParticle's integration docs below to enable the integration.
4. Reference Apptentive's integration doc below for more features.
5. Check out the example app below.

### Documentation

[Apptentive integration](https://docs.mparticle.com/integrations/apptentive/event/)

[Apptentive-mParticle Integration](https://learn.apptentive.com/knowledge-base/mparticle-integration-android)

### Example App

[Apptentive Android mParticle Example](https://github.com/apptentive/android-mparticle-example)

### License

[Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)
69 changes: 69 additions & 0 deletions kits/apptentive/apptentive-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-apptentive"
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.apptentive'
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']
}
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

dependencies {
api 'com.apptentive:apptentive-kit-android:6.9.1'
testImplementation 'io.mockk:mockk:1.13.3'
}
19 changes: 19 additions & 0 deletions kits/apptentive/apptentive-6/consumer-proguard.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# include in this file rules Apptentive want applied to a
# consumer of this library when the consumer proguards itself.

# Marshmallow removed Notification.setLatestEventInfo()
-dontwarn android.app.Notification
-dontwarn android.support.v7.**
-keep class android.support.v7.** { *; }
-keep interface android.support.v7.** { *; }

-dontwarn android.support.v4.app.**
-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }

-dontwarn com.google.android.gms.**
-keep public class com.google.android.gms.**

-dontwarn com.apptentive.android.sdk.**
-keepattributes SourceFile,LineNumberTable
-keep class com.apptentive.android.sdk.** { *; }
4 changes: 4 additions & 0 deletions kits/apptentive/apptentive-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/apptentive/apptentive-6/gradlew

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

Loading
Loading