mirror of
https://github.com/hmalik144/EasyCC_Master.git
synced 2025-12-10 03:05:29 +00:00
key removed from gradle properties
This commit is contained in:
BIN
.idea/caches/build_file_checksums.ser
generated
BIN
.idea/caches/build_file_checksums.ser
generated
Binary file not shown.
6
.idea/codeStyles/Project.xml
generated
6
.idea/codeStyles/Project.xml
generated
@@ -1,5 +1,8 @@
|
||||
<component name="ProjectCodeStyleConfiguration">
|
||||
<code_scheme name="Project" version="173">
|
||||
<JetCodeStyleSettings>
|
||||
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
|
||||
</JetCodeStyleSettings>
|
||||
<codeStyleSettings language="XML">
|
||||
<indentOptions>
|
||||
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
||||
@@ -112,5 +115,8 @@
|
||||
</rules>
|
||||
</arrangement>
|
||||
</codeStyleSettings>
|
||||
<codeStyleSettings language="kotlin">
|
||||
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
|
||||
</codeStyleSettings>
|
||||
</code_scheme>
|
||||
</component>
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +1,17 @@
|
||||
# Project-wide Gradle settings.
|
||||
|
||||
# IDE (e.g. Android Studio) users:
|
||||
# Gradle settings configured through the IDE *will override*
|
||||
# any settings specified in this file.
|
||||
|
||||
# For more details on how to configure your build environment visit
|
||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||
|
||||
# Specifies the JVM arguments used for the daemon process.
|
||||
# The setting is particularly useful for tweaking memory settings.
|
||||
android.enableJetifier=true
|
||||
android.useAndroidX=true
|
||||
org.gradle.jvmargs=-Xmx1536m
|
||||
|
||||
# When configured, Gradle will run in incubating parallel mode.
|
||||
# This option should only be used with decoupled projects. More details, visit
|
||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||
# org.gradle.parallel=true
|
||||
# Kotlin code style for this project: "official" or "obsolete":
|
||||
kotlin.code.style=official
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
Reference in New Issue
Block a user