Skip to content

Commit 76367d6

Browse files
authored
Merge pull request #722 from qonversion/release-nocodes/0.1.1
2 parents 5e7f053 + 8ac226b commit 76367d6

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ buildscript {
1010
versionCode: 1
1111
]
1212
nocodes = [
13-
versionName: "0.1.0",
13+
versionName: "0.1.1",
1414
versionCode: 1
1515
]
1616
}

fastlane/report.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77

8-
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000871">
8+
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000277">
99

1010
</testcase>
1111

nocodes/src/main/java/io/qonversion/nocodes/dto/QAction.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,20 @@ data class QAction(
1515
Url("url"),
1616
DeepLink("deeplink"),
1717
Navigation("navigation"),
18-
Purchase("makePurchase"),
18+
Purchase("purchase"),
1919
Restore("restore"),
2020
Close("close"),
2121
CloseAll("closeAll"),
2222
LoadProducts("getProducts"),
2323
ShowScreen("showScreen");
2424

2525
companion object {
26-
fun from(type: String?) = entries.find { it.type == type } ?: Unknown
26+
fun from(type: String?): Type {
27+
if (type == "makePurchase") {
28+
return Purchase
29+
}
30+
return entries.find { it.type == type } ?: Unknown
31+
}
2732
}
2833
}
2934

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package io.qonversion.nocodes.internal.common
22

3-
internal const val API_URL = "https://api.qonversion.io/"
3+
internal const val API_URL = "https://api2.qonversion.io/"
44

55
internal const val PLATFORM = "android"

sdk/src/main/java/com/qonversion/android/sdk/internal/InternalConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ internal class InternalConfig(
5050
val isAnalyticsMode get() = primaryConfig.launchMode == QLaunchMode.Analytics
5151

5252
companion object {
53-
private const val BASE_URL = "https://api.qonversion.io/"
53+
private const val BASE_URL = "https://api2.qonversion.io/"
5454
}
5555
}

sdk/src/test/java/com/qonversion/android/sdk/internal/api/ApiHelperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test
1111

1212
internal class ApiHelperTest {
1313

14-
private val apiUrl = "https://api.qonversion.io/"
14+
private val apiUrl = "https://api2.qonversion.io/"
1515
private lateinit var apiHelper: ApiHelper
1616

1717
@BeforeEach

0 commit comments

Comments
 (0)