Skip to content

Commit 0aa6a6f

Browse files
committed
Merge branch 'release/1.5.6'
2 parents c195c5e + 631e6f0 commit 0aa6a6f

File tree

9 files changed

+20
-9
lines changed

9 files changed

+20
-9
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
plugins {
3-
id 'com.android.application' version '7.4.2' apply false
4-
id 'com.android.library' version '7.4.2' apply false
3+
id 'com.android.application' version '8.0.1' apply false
4+
id 'com.android.library' version '8.0.1' apply false
55
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
66
}
77

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ kotlin.code.style=official
2020
# Enables namespacing of each library's R class so that its R class includes only the
2121
# resources declared in the library itself and none from the library's dependencies,
2222
# thereby reducing the size of the R class for that library
23-
android.nonTransitiveRClass=true
23+
android.nonTransitiveRClass=true
24+
android.defaults.buildfeatures.buildconfig=true
25+
android.nonFinalResIds=false
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Thu Mar 17 18:19:13 ICT 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

pam-android-kotlin/src/main/java/ai/pams/android/kotlin/ContactConsentManager.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class ContactConsentManager(private val consentMessageID:String, private val fra
3535
private fun loadConsentMessage() {
3636
val pamServerURL = Pam.shared.options?.pamServer
3737
Http.getInstance()
38-
.get("${pamServerURL ?: ""}/consent-message/$consentMessageID") { result, error ->
38+
.get("${pamServerURL ?: ""}/consent-message/$consentMessageID"
39+
) { result, error ->
3940
if (error == null) {
4041
consentMessage = Gson().fromJson(result, ContactConsentModel::class.java)
4142
ready = true

pam-android-kotlin/src/main/java/ai/pams/android/kotlin/TrackingConsentManager.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ class TrackingConsentManager{
7070
consentMessageID = Pam.shared.options?.trackingConsentMessageID
7171
pamServerURL = Pam.shared.options?.pamServer
7272
Http.getInstance()
73-
.get("${pamServerURL ?: ""}/consent-message/$consentMessageID") { result, error ->
73+
.get("${pamServerURL ?: ""}/consent-message/$consentMessageID"
74+
) { result, error ->
7475
if (error == null) {
7576
trackingConsentMessageConfigurations = Gson().fromJson(result, TrackingConsentMessageConfigurations::class.java)
7677
checkConsentPermission()

pam-android-kotlin/src/main/java/ai/pams/android/kotlin/http/Http.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class Http {
5858
for ((k, v) in headers) {
5959
requestBuilder.addHeader(k, v)
6060
}
61+
requestBuilder.addHeader("platform", "android")
6162

6263
val jsonString = JSONObject(data).toString()
6364
val requestBody = jsonString.toRequestBody()
@@ -103,6 +104,7 @@ class Http {
103104
for ((k, v) in headers) {
104105
requestBuilder.addHeader(k, v)
105106
}
107+
requestBuilder.addHeader("platform", "android")
106108

107109
val request = requestBuilder.build()
108110

0 commit comments

Comments
 (0)