diff --git a/CheckoutExample/.idea/jarRepositories.xml b/CheckoutExample/.idea/jarRepositories.xml
index a5f05cd..4dcbce1 100644
--- a/CheckoutExample/.idea/jarRepositories.xml
+++ b/CheckoutExample/.idea/jarRepositories.xml
@@ -21,5 +21,15 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/CheckoutExample/app/build.gradle b/CheckoutExample/app/build.gradle
index 7e4e2ce..4cb97f8 100644
--- a/CheckoutExample/app/build.gradle
+++ b/CheckoutExample/app/build.gradle
@@ -1,4 +1,5 @@
apply plugin: 'com.android.application'
+apply plugin: 'maven-publish'
android {
compileSdkVersion 30
@@ -33,3 +34,40 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
+repositories {
+ mavenCentral()
+ google()
+ jcenter()
+ maven { url "https://jitpack.io" }
+}
+String VERSION_NAME = "4.2.4"
+String GROUP_ID = "com.kount"
+String ARTIFACT_ID = "datacollector"
+
+afterEvaluate {
+ publishing {
+ publications {
+ release(MavenPublication) {
+ groupId GROUP_ID
+ artifactId = ARTIFACT_ID
+ version = VERSION_NAME
+
+ artifact('../../KountDataCollector/kount-data-collector-4.2.4.jar')
+
+ pom.withXml {
+ def dependenciesNode = asNode().appendNode('dependencies')
+ configurations["implementation"].allDependencies.each {
+ if (it.name!='unspecified') {
+ def dependencyNode = dependenciesNode.appendNode('dependency')
+ dependencyNode.appendNode('groupId', it.group)
+ dependencyNode.appendNode('artifactId', it.name)
+ dependencyNode.appendNode('version', it.version)
+ }
+ }
+ }
+ }
+
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/CheckoutExample/kotlinexample/build.gradle b/CheckoutExample/kotlinexample/build.gradle
index 31f392c..c691fcf 100644
--- a/CheckoutExample/kotlinexample/build.gradle
+++ b/CheckoutExample/kotlinexample/build.gradle
@@ -43,4 +43,5 @@ dependencies {
implementation "com.google.android.material:material:1.4.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
-}
+
+}
\ No newline at end of file