Skip to content

Commit b3ea2fd

Browse files
committed
feat: migrate apptentive-kit from submodule to regular directory
feat: relocate apptentive-kit to kits/apptentive/apptentive-6 feat: add apptentive-6 to settings-kits.gradle
1 parent 2c6543f commit b3ea2fd

22 files changed

Lines changed: 1243 additions & 5 deletions

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
[submodule "kits/adobemedia-kit"]
55
path = kits/adobemedia-kit
66
url = git@github.com:mparticle-integrations/mparticle-android-integration-adobe-media.git
7-
[submodule "kits/apptentive-kit"]
8-
path = kits/apptentive-kit
9-
url = git@github.com:mparticle-integrations/mparticle-android-integration-apptentive.git
107
[submodule "kits/apptimize-kit"]
118
path = kits/apptimize-kit
129
url = git@github.com:mparticle-integrations/mparticle-android-integration-apptimize.git

.trunk/trunk.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ lint:
6868
- "**/gradlew"
6969
- scripts/install-start-emulator.sh
7070
- kits/adjust/adjust-5/**
71+
- kits/apptentive/apptentive-6/**
7172
- kits/appsflyer/appsflyer-6/**
7273
- kits/braze/braze-38/**
7374
- kits/ga/ga-23/**

kits/apptentive-kit

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Apptentive Kit Integration
2+
3+
This repository contains the [Apptentive](https://www.apptentive.com/) integration for the [mParticle Android SDK](https://github.com/mParticle/mparticle-android-sdk).
4+
5+
### Adding the integration
6+
7+
1. Add the kit dependency to your app's build.gradle:
8+
9+
```groovy
10+
dependencies {
11+
implementation 'com.mparticle:android-apptentive-kit:5+'
12+
}
13+
```
14+
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`.
15+
3. Reference mParticle's integration docs below to enable the integration.
16+
4. Reference Apptentive's integration doc below for more features.
17+
5. Check out the example app below.
18+
19+
### Documentation
20+
21+
[Apptentive integration](https://docs.mparticle.com/integrations/apptentive/event/)
22+
23+
[Apptentive-mParticle Integration](https://learn.apptentive.com/knowledge-base/mparticle-integration-android)
24+
25+
### Example App
26+
27+
[Apptentive Android mParticle Example](https://github.com/apptentive/android-mparticle-example)
28+
29+
### License
30+
31+
[Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
buildscript {
2+
ext.kotlin_version = '2.0.20'
3+
if (!project.hasProperty('version') || project.version.equals('unspecified')) {
4+
project.version = '+'
5+
}
6+
7+
repositories {
8+
google()
9+
mavenLocal()
10+
mavenCentral()
11+
}
12+
13+
dependencies {
14+
classpath 'com.android.tools.build:gradle:8.1.4'
15+
classpath 'com.mparticle:android-kit-plugin:' + project.version
16+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
17+
}
18+
}
19+
20+
plugins {
21+
id "org.sonarqube" version "3.5.0.2730"
22+
id "org.jlleitschuh.gradle.ktlint" version "13.0.0"
23+
}
24+
25+
sonarqube {
26+
properties {
27+
property "sonar.projectKey", "mparticle-android-integration-apptentive"
28+
property "sonar.organization", "mparticle"
29+
property "sonar.host.url", "https://sonarcloud.io"
30+
}
31+
}
32+
33+
apply plugin: 'org.jlleitschuh.gradle.ktlint'
34+
apply plugin: 'kotlin-android'
35+
apply plugin: 'com.mparticle.kit'
36+
37+
android {
38+
namespace 'com.mparticle.kits.apptentive'
39+
buildFeatures {
40+
buildConfig = true
41+
}
42+
defaultConfig {
43+
minSdkVersion 21
44+
}
45+
compileOptions {
46+
sourceCompatibility JavaVersion.VERSION_17
47+
targetCompatibility JavaVersion.VERSION_17
48+
}
49+
kotlinOptions {
50+
jvmTarget = '17'
51+
}
52+
testOptions {
53+
unitTests.all {
54+
jvmArgs += ['--add-opens', 'java.base/java.lang=ALL-UNNAMED']
55+
}
56+
}
57+
}
58+
59+
allprojects {
60+
repositories {
61+
google()
62+
mavenCentral()
63+
}
64+
}
65+
66+
dependencies {
67+
api 'com.apptentive:apptentive-kit-android:6.9.1'
68+
testImplementation 'io.mockk:mockk:1.13.3'
69+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# include in this file rules Apptentive want applied to a
2+
# consumer of this library when the consumer proguards itself.
3+
4+
# Marshmallow removed Notification.setLatestEventInfo()
5+
-dontwarn android.app.Notification
6+
-dontwarn android.support.v7.**
7+
-keep class android.support.v7.** { *; }
8+
-keep interface android.support.v7.** { *; }
9+
10+
-dontwarn android.support.v4.app.**
11+
-keep class android.support.v4.app.** { *; }
12+
-keep interface android.support.v4.app.** { *; }
13+
14+
-dontwarn com.google.android.gms.**
15+
-keep public class com.google.android.gms.**
16+
17+
-dontwarn com.apptentive.android.sdk.**
18+
-keepattributes SourceFile,LineNumberTable
19+
-keep class com.apptentive.android.sdk.** { *; }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
android.enableJetifier=true
2+
android.useAndroidX=true
3+
org.gradle.daemon=true
4+
org.gradle.jvmargs=-Xmx2560m
58.4 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

kits/apptentive/apptentive-6/gradlew

Lines changed: 234 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)