Skip to content

Commit

Permalink
Android kotlin version and min SDK fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Masseau committed Jan 30, 2024
1 parent f75793f commit 68852b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
buildscript {
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["KlaviyoReactNativeSdk_kotlinVersion"]
def kotlinVersion = kotlin_version

repositories {
google()
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryErro
# org.gradle.parallel=true
#Tue Dec 19 15:08:27 EST 2023
KlaviyoReactNativeSdk_compileSdkVersion=31
KlaviyoReactNativeSdk_kotlinVersion=1.7.0
KlaviyoReactNativeSdk_kotlinVersion=1.9.22
KlaviyoReactNativeSdk_minSdkVersion=23
KlaviyoReactNativeSdk_ndkversion=21.4.7075529
KlaviyoReactNativeSdk_targetSdkVersion=31
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class KlaviyoReactNativeSdkModule internal constructor(private val context: Reac
override fun setProfile(profile: ReadableMap) {
val parsedProfile = Profile()

profile.toHashMap().forEach { (key, value) ->
profile.toHashMap().iterator().forEach { (key, value) ->
when (key) {
LOCATION, PROPERTIES ->
(value as? HashMap<*, *>)?.forEach { (key, value) ->
Expand Down

0 comments on commit 68852b0

Please sign in to comment.