-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android kotlin version and min SDK fixes #71
Changes from all commits
e1fcacd
01e6452
c73d9da
e4a4e60
d0284ab
db72f20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.8.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1.8 is compatible with 1.9.22 so we can stop here for now |
||
KlaviyoReactNativeSdk_minSdkVersion=23 | ||
KlaviyoReactNativeSdk_ndkversion=21.4.7075529 | ||
KlaviyoReactNativeSdk_targetSdkVersion=31 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## This file must *NOT* be checked into Version Control Systems, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I checked this into VC to make it easier to access, but it is still git ignored so your local changes to this file won't get committed. |
||
## as it contains information specific to your local configuration | ||
|
||
## Uncomment for local SDK development so that gradle can locate the | ||
## correct RN version outside the context of an application | ||
#reactNativeAndroidVersion=0.73.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) -> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This triggers a warning about min SDK version of 24. |
||
profile.toHashMap().iterator().forEach { (key, value) -> | ||
when (key) { | ||
LOCATION, PROPERTIES -> | ||
(value as? HashMap<*, *>)?.forEach { (key, value) -> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice