API call for DeviceProvision and Login is completed and tested

This commit is contained in:
Kaif
2023-12-26 14:16:19 +05:30
parent 0faf4adbd7
commit 00a3124fbf
31 changed files with 697 additions and 345 deletions

View File

@@ -0,0 +1,15 @@
package com.example.hpostesting.util
import android.content.res.AssetManager
import com.example.hpostesting.data.api.PropertyProvider
import java.io.InputStream
import java.util.Properties
class PropertyProviderImpl (private val assetManager: AssetManager) : PropertyProvider {
override fun getProperty(key: String): String {
val inputStream: InputStream = assetManager.open("app.properties")
val properties = Properties()
properties.load(inputStream)
return properties.getProperty(key)
}
}