Skip to content

Commit 9bb9c72

Browse files
committed
fix(kits): enable vendor Maven repos in sample app builds
Add kit-specific repositories and multidex to example apps that need vendor Maven resolution, and drop skip_example_builds for those kits.
1 parent 135326d commit 9bb9c72

19 files changed

Lines changed: 53 additions & 352 deletions

File tree

kits/adobe/adobe-5/example/example-kotlin/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ android {
1313
targetSdk 35
1414
versionCode 1
1515
versionName '1.0'
16+
multiDexEnabled true
1617
}
1718

1819
compileOptions {
@@ -35,4 +36,5 @@ dependencies {
3536
implementation project(':kits:adobe:adobe-5')
3637
implementation 'androidx.appcompat:appcompat:1.6.1'
3738
implementation 'com.google.android.material:material:1.11.0'
39+
implementation 'androidx.multidex:multidex:2.0.1'
3840
}

kits/adobe/adobe-5/example/example-kotlin/src/main/kotlin/com/mparticle/kits/adobe/example/kotlin/ExampleApplication.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package com.mparticle.kits.adobe.example.kotlin
22

3-
import android.app.Application
3+
import androidx.multidex.MultiDexApplication
44
import com.mparticle.MPEvent
55
import com.mparticle.MParticle
66
import com.mparticle.MParticleOptions
77

8-
class ExampleApplication : Application() {
8+
class ExampleApplication : MultiDexApplication() {
99
override fun onCreate() {
1010
super.onCreate()
1111
val options =

kits/appsflyer/appsflyer-6/example/example-kotlin/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ android {
1313
targetSdk 35
1414
versionCode 1
1515
versionName '1.0'
16+
multiDexEnabled true
1617
}
1718

1819
compileOptions {
@@ -35,4 +36,5 @@ dependencies {
3536
implementation project(':kits:appsflyer:appsflyer-6')
3637
implementation 'androidx.appcompat:appcompat:1.6.1'
3738
implementation 'com.google.android.material:material:1.11.0'
39+
implementation 'androidx.multidex:multidex:2.0.1'
3840
}

kits/appsflyer/appsflyer-6/example/example-kotlin/src/main/kotlin/com/mparticle/kits/appsflyer/example/kotlin/ExampleApplication.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package com.mparticle.kits.appsflyer.example.kotlin
22

3-
import android.app.Application
3+
import androidx.multidex.MultiDexApplication
44
import com.mparticle.MPEvent
55
import com.mparticle.MParticle
66
import com.mparticle.MParticleOptions
77

8-
class ExampleApplication : Application() {
8+
class ExampleApplication : MultiDexApplication() {
99
override fun onCreate() {
1010
super.onCreate()
1111
val options =

kits/apptimize/apptimize-3/example/example-kotlin/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ android {
1313
targetSdk 35
1414
versionCode 1
1515
versionName '1.0'
16+
multiDexEnabled true
1617
}
1718

1819
compileOptions {
@@ -31,8 +32,15 @@ android {
3132
}
3233
}
3334

35+
repositories {
36+
maven { url 'https://maven.apptimize.com/artifactory/repo' }
37+
google()
38+
mavenCentral()
39+
}
40+
3441
dependencies {
3542
implementation project(':kits:apptimize:apptimize-3')
3643
implementation 'androidx.appcompat:appcompat:1.6.1'
3744
implementation 'com.google.android.material:material:1.11.0'
45+
implementation 'androidx.multidex:multidex:2.0.1'
3846
}

kits/apptimize/apptimize-3/example/example-kotlin/src/main/kotlin/com/mparticle/kits/apptimize/example/kotlin/ExampleApplication.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package com.mparticle.kits.apptimize.example.kotlin
22

3-
import android.app.Application
3+
import androidx.multidex.MultiDexApplication
44
import com.mparticle.MPEvent
55
import com.mparticle.MParticle
66
import com.mparticle.MParticleOptions
77

8-
class ExampleApplication : Application() {
8+
class ExampleApplication : MultiDexApplication() {
99
override fun onCreate() {
1010
super.onCreate()
1111
val options =

kits/kochava/kochava-5/example/example-kotlin/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ android {
1313
targetSdk 35
1414
versionCode 1
1515
versionName '1.0'
16+
multiDexEnabled true
1617
}
1718

1819
compileOptions {
@@ -35,4 +36,5 @@ dependencies {
3536
implementation project(':kits:kochava:kochava-5')
3637
implementation 'androidx.appcompat:appcompat:1.6.1'
3738
implementation 'com.google.android.material:material:1.11.0'
39+
implementation 'androidx.multidex:multidex:2.0.1'
3840
}

kits/kochava/kochava-5/example/example-kotlin/src/main/kotlin/com/mparticle/kits/kochava/example/kotlin/ExampleApplication.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package com.mparticle.kits.kochava.example.kotlin
22

3-
import android.app.Application
3+
import androidx.multidex.MultiDexApplication
44
import com.mparticle.MPEvent
55
import com.mparticle.MParticle
66
import com.mparticle.MParticleOptions
77

8-
class ExampleApplication : Application() {
8+
class ExampleApplication : MultiDexApplication() {
99
override fun onCreate() {
1010
super.onCreate()
1111
val options =

kits/leanplum/leanplum-7/example/example-kotlin/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ android {
1313
targetSdk 35
1414
versionCode 1
1515
versionName '1.0'
16+
multiDexEnabled true
1617
}
1718

1819
compileOptions {
@@ -35,4 +36,5 @@ dependencies {
3536
implementation project(':kits:leanplum:leanplum-7')
3637
implementation 'androidx.appcompat:appcompat:1.6.1'
3738
implementation 'com.google.android.material:material:1.11.0'
39+
implementation 'androidx.multidex:multidex:2.0.1'
3840
}

kits/leanplum/leanplum-7/example/example-kotlin/src/main/kotlin/com/mparticle/kits/leanplum/example/kotlin/ExampleApplication.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package com.mparticle.kits.leanplum.example.kotlin
22

3-
import android.app.Application
3+
import androidx.multidex.MultiDexApplication
44
import com.mparticle.MPEvent
55
import com.mparticle.MParticle
66
import com.mparticle.MParticleOptions
77

8-
class ExampleApplication : Application() {
8+
class ExampleApplication : MultiDexApplication() {
99
override fun onCreate() {
1010
super.onCreate()
1111
val options =

0 commit comments

Comments
 (0)