mirror of
https://github.com/hmalik144/EasyCC_Master.git
synced 2026-01-31 02:41:47 +00:00
key removed from gradle properties
This commit is contained in:
@@ -19,23 +19,11 @@ android {
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
// testOptions {
|
||||
// unitTests.returnDefaultValues = true
|
||||
// }
|
||||
dataBinding {
|
||||
enabled = true
|
||||
}
|
||||
|
||||
viewBinding.enabled = true
|
||||
|
||||
buildTypes.each {
|
||||
Properties properties = new Properties()
|
||||
properties.load(project.rootProject.file("local.properties").newDataInputStream())
|
||||
def ccApiKey = properties.getProperty("cc_api_key", "")
|
||||
|
||||
it.buildConfigField 'String', "CC_API_KEY", ccApiKey
|
||||
it.resValue 'string', "api_key", ccApiKey
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -17,7 +17,7 @@ class QueryInterceptor() : Interceptor {
|
||||
val originalHttpUrl: HttpUrl = original.url()
|
||||
|
||||
val url = originalHttpUrl.newBuilder()
|
||||
.addQueryParameter("apiKey", BuildConfig.CC_API_KEY)
|
||||
.addQueryParameter("apiKey", "a4f93cc2ff05dd772321")
|
||||
.build()
|
||||
|
||||
// Add amended Url back to request
|
||||
|
||||
@@ -78,7 +78,6 @@ class MainViewModel(
|
||||
val bottomVal1 = (fromValDouble * conversionRate)
|
||||
bottomVal1.toTwoDpString()
|
||||
}catch (e: NumberFormatException) {
|
||||
Log.e(TAG, "no numbers inserted")
|
||||
null
|
||||
}
|
||||
}
|
||||
@@ -89,7 +88,6 @@ class MainViewModel(
|
||||
val newTopVal = toDoubleVal.times((1/conversionRate))
|
||||
newTopVal.toTwoDpString()
|
||||
} catch (e: NumberFormatException) {
|
||||
Log.e(TAG, "no numbers inserted")
|
||||
null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user