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 @@ -34,9 +34,6 @@
[submodule "kits/revealmobile-kit"]
path = kits/revealmobile-kit
url = git@github.com:mparticle-integrations/mparticle-android-integration-revealmobile.git
[submodule "kits/singular-kit"]
path = kits/singular-kit
url = git@github.com:mparticle-integrations/mparticle-android-integration-singular.git
[submodule "kits/skyhook-kit"]
path = kits/skyhook-kit
url = git@github.com:mparticle-integrations/mparticle-android-integration-skyhook.git
Expand Down
4 changes: 2 additions & 2 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ lint:
- kits/apptimize/apptimize-3/**
- kits/braze/braze-38/**
- kits/clevertap/clevertap-7/**
- kits/comscore/comscore-6/**
- kits/iterable/iterable-3/**
- kits/ga/ga-23/**
- kits/ga4/ga4-23/**
- kits/kochava/kochava-5/**
- kits/leanplum/leanplum-7/**
- kits/rokt/rokt/**
- kits/localytics/localytics-6/**
- kits/rokt/rokt/**
- kits/comscore/comscore-6/**
- kits/singular/singular-12/**
actions:
enabled:
- trunk-announce
Expand Down
1 change: 0 additions & 1 deletion kits/singular-kit
Submodule singular-kit deleted from 64b343
32 changes: 32 additions & 0 deletions kits/singular/singular-12/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## Singular Kit Integration

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

### Adding the integration

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

```
repositories {
maven { url "https://maven.singular.net"}
...
}
```

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

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

### Documentation

[Singular integration](https://docs.mparticle.com/integrations/singular/event/)

### License

[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)
77 changes: 77 additions & 0 deletions kits/singular/singular-12/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
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-singular"
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'

repositories {
maven {
url 'https://maven.singular.net'
}
mavenCentral()
}

android {
namespace 'com.mparticle.kits.singular'
buildFeatures {
buildConfig = true
}
defaultConfig {
minSdkVersion 16
}
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 {
api 'com.singular.sdk:singular_sdk:12.5.4'

androidTestImplementation 'androidx.test:runner:1.5.2'
testImplementation 'org.powermock:powermock-core:2.0.9'
testImplementation 'org.powermock:powermock-api-mockito2:2.0.2'
testImplementation 'org.powermock:powermock-module-junit4-rule:2.0.9'
testImplementation 'org.powermock:powermock-module-junit4:2.0.9'
testImplementation 'org.powermock:powermock-classloading-xstream:2.0.2'
testImplementation "org.robolectric:robolectric:4.3.1"
testImplementation 'org.json:json:20220320'
}
1 change: 1 addition & 0 deletions kits/singular/singular-12/consumer-proguard.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# TODO: Add rules to exclude your SDK classes from proguard in implementing apps
4 changes: 4 additions & 0 deletions kits/singular/singular-12/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/singular/singular-12/gradlew

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

Loading
Loading