Skip to content

Commit 512ff6f

Browse files
authored
feat: Migrate CleverTap kit (#660)
* feat: migrate clevertap-kit from submodule to regular directory * feat: relocate clevertap-kit to kits/clevertap/clevertap-7 Made-with: Cursor * feat: update settings-kits.gradle for clevertap-7 kit path Made-with: Cursor
1 parent 255eefe commit 512ff6f

17 files changed

Lines changed: 902 additions & 5 deletions

File tree

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
[submodule "kits/button-kit"]
2020
path = kits/button-kit
2121
url = git@github.com:mparticle-integrations/mparticle-android-integration-button.git
22-
[submodule "kits/clevertap-kit"]
23-
path = kits/clevertap-kit
24-
url = git@github.com:mparticle-integrations/mparticle-android-integration-clevertap.git
2522
[submodule "kits/comscore-kit"]
2623
path = kits/comscore-kit
2724
url = git@github.com:mParticle-integrations/mparticle-android-integration-comscore.git

.trunk/trunk.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,14 @@ lint:
7070
- kits/adjust/adjust-5/**
7171
- kits/appsflyer/appsflyer-6/**
7272
- kits/braze/braze-38/**
73+
- kits/clevertap/clevertap-7/**
7374
- kits/ga/ga-23/**
7475
- kits/ga4/ga4-23/**
7576
- kits/kochava/kochava-5/**
7677
- kits/leanplum/leanplum-7/**
7778
- kits/rokt/rokt/**
7879
- kits/localytics/localytics-6/**
80+
- kits/rokt/rokt/**
7981
actions:
8082
enabled:
8183
- trunk-announce

kits/clevertap-kit

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## CleverTap Kit Integration
2+
3+
This repository contains the [CleverTap](https://www.clevertap.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-clevertap-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 `"CleverTap detected"` in the output of `adb logcat`.
15+
3. Reference mParticle's integration docs below to enable the integration.
16+
17+
### Documentation
18+
19+
[Clevertap integration](https://docs.mparticle.com/integrations/clevertap/event/)
20+
21+
### License
22+
23+
[Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
dependencies {
13+
classpath 'com.android.tools.build:gradle:8.1.4'
14+
classpath 'com.mparticle:android-kit-plugin:' + project.version
15+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16+
}
17+
}
18+
19+
plugins {
20+
id "org.sonarqube" version "3.5.0.2730"
21+
id "org.jlleitschuh.gradle.ktlint" version "13.0.0"
22+
}
23+
24+
sonarqube {
25+
properties {
26+
property "sonar.projectKey", "mparticle-android-integration-clevertap"
27+
property "sonar.organization", "mparticle"
28+
property "sonar.host.url", "https://sonarcloud.io"
29+
}
30+
}
31+
32+
apply plugin: 'org.jlleitschuh.gradle.ktlint'
33+
apply plugin: 'kotlin-android'
34+
apply plugin: 'com.mparticle.kit'
35+
36+
android {
37+
namespace 'com.mparticle.kits.clevertap'
38+
buildFeatures {
39+
buildConfig = true
40+
}
41+
defaultConfig {
42+
minSdkVersion 23
43+
}
44+
compileOptions {
45+
sourceCompatibility JavaVersion.VERSION_17
46+
targetCompatibility JavaVersion.VERSION_17
47+
}
48+
kotlinOptions {
49+
jvmTarget = '17'
50+
}
51+
testOptions {
52+
unitTests.all {
53+
jvmArgs += ['--add-opens', 'java.base/java.lang=ALL-UNNAMED']
54+
}
55+
}
56+
}
57+
58+
dependencies {
59+
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
60+
api 'com.clevertap.android:clevertap-android-sdk:7.5.0'
61+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# For CleverTap SDK
2+
-dontwarn com.clevertap.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/clevertap/clevertap-7/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)