Skip to content

Commit 5c4df4a

Browse files
#Android 15 support added
1 parent b509fdd commit 5c4df4a

File tree

2 files changed

+32
-17
lines changed

2 files changed

+32
-17
lines changed

README.md

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,23 @@ dependencyResolutionManagement {
3838

3939
**Step 3:** Add the following dependencies in the app/build.gradle file.
4040
```gradle
41-
apply plugin: 'com.android.application'
41+
plugins {
42+
id("com.android.application")
43+
}
4244
4345
android {
4446
buildFeatures {
45-
viewBinding true
47+
viewBinding = true
4648
}
4749
4850
compileOptions {
49-
sourceCompatibility JavaVersion.VERSION_1_8
50-
targetCompatibility JavaVersion.VERSION_1_8
51+
sourceCompatibility = JavaVersion.VERSION_1_8
52+
targetCompatibility = JavaVersion.VERSION_1_8
5153
}
5254
}
5355
5456
dependencies {
55-
implementation 'com.mirrorfly.sdk:MirrorFlySDK:7.13.0'
57+
implementation 'com.mirrorfly.sdk:MirrorFlySDK:7.13.27'
5658
}
5759
```
5860

@@ -67,17 +69,30 @@ dependencies {
6769
```
6870
**Step 6:** To log in and run the app, you need to add the **LICENCSE** key in the app/build.gradle file. To generate the license key, you need to sign up in the <a href="https://console.mirrorfly.com/" target="_self">MirrorFly console</a>, and you can get it from there.
6971
```gradle
70-
debug {
71-
buildConfigField 'Boolean', 'IS_QA_BUILD', 'true'
72-
buildConfigField 'String', 'LICENSE', '"Please enter your License key"' // add your license key
73-
buildConfigField 'String', 'WEB_CHAT_LOGIN', '"https://webchat-preprod-sandbox.mirrorfly.com/"'
74-
buildConfigField "String", "SUPPORT_MAIL", '"[email protected]"'
72+
buildTypes {
73+
getByName("debug") {
74+
buildConfigField("Boolean", "IS_QA_BUILD", "true")
75+
buildConfigField("String", "LICENSE", "\"2sdgNtr3sFBSM3bYRa7RKDPEiB38Xo\"")
76+
buildConfigField("String", "WEB_CHAT_LOGIN", "\"https://webchat-preprod-sandbox.mirrorfly.com/\"")
77+
buildConfigField("String", "SUPPORT_MAIL", "\"[email protected]\"")
78+
buildConfigField("Boolean", "IS_SKIP_OTP", "true")
79+
buildConfigField("java.util.Date", "BUILD_TIME", "new java.util.Date(${System.currentTimeMillis()}L)")
80+
7581
resValue("string", "app_name", "UI Kit")
76-
shrinkResources false
77-
debuggable true
78-
minifyEnabled false
79-
signingConfig signingConfigs.config
80-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
82+
83+
val googleTranslateKey = project.findProperty("GOOGLE_TRANSLATE_KEY") as String? ?: ""
84+
val hipaaComplianceEnabled = project.findProperty("HIPAA_COMPLIANCE_ENABLED") as String? ?: "false"
85+
val contactSyncEnabled = project.findProperty("CONTACT_SYNC_ENABLED") as String? ?: "false"
86+
val host = project.findProperty("HOST") as String? ?: "8.8.8.8"
87+
buildConfigField("String", "GOOGLE_TRANSLATE_KEY", googleTranslateKey)
88+
buildConfigField("Boolean", "HIPAA_COMPLIANCE_ENABLED", hipaaComplianceEnabled)
89+
buildConfigField("Boolean", "CONTACT_SYNC_ENABLED", contactSyncEnabled)
90+
buildConfigField("String", "HOST", host)
91+
// shrinkResources = false
92+
isDebuggable = true
93+
isMinifyEnabled = false
94+
signingConfig = signingConfigs.getByName("config")
95+
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
8196
}
8297
```
8398
After saving your build.gradle file, click the Sync button to apply all the changes.

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ android {
5757
val googleTranslateKey = project.findProperty("GOOGLE_TRANSLATE_KEY") as String? ?: ""
5858
val hipaaComplianceEnabled = project.findProperty("HIPAA_COMPLIANCE_ENABLED") as String? ?: "false"
5959
val contactSyncEnabled = project.findProperty("CONTACT_SYNC_ENABLED") as String? ?: "false"
60-
val host = project.findProperty("HOST") as String? ?: "127.0.0.1"
60+
val host = project.findProperty("HOST") as String? ?: "8.8.8.8"
6161
buildConfigField("String", "GOOGLE_TRANSLATE_KEY", googleTranslateKey)
6262
buildConfigField("Boolean", "HIPAA_COMPLIANCE_ENABLED", hipaaComplianceEnabled)
6363
buildConfigField("Boolean", "CONTACT_SYNC_ENABLED", contactSyncEnabled)
@@ -83,7 +83,7 @@ android {
8383
val googleTranslateKey = project.findProperty("GOOGLE_TRANSLATE_KEY") as String? ?: ""
8484
val hipaaComplianceEnabled = project.findProperty("HIPAA_COMPLIANCE_ENABLED") as String? ?: "false"
8585
val contactSyncEnabled = project.findProperty("CONTACT_SYNC_ENABLED") as String? ?: "false"
86-
val host = project.findProperty("HOST") as String? ?: "127.0.0.1"
86+
val host = project.findProperty("HOST") as String? ?: "8.8.8.8"
8787
buildConfigField("String", "GOOGLE_TRANSLATE_KEY", googleTranslateKey)
8888
buildConfigField("Boolean", "HIPAA_COMPLIANCE_ENABLED", hipaaComplianceEnabled)
8989
buildConfigField("Boolean", "CONTACT_SYNC_ENABLED", contactSyncEnabled)

0 commit comments

Comments
 (0)