@@ -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
4345android {
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
5456dependencies {
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```
8398After saving your build.gradle file, click the Sync button to apply all the changes.
0 commit comments