From 154b8ce452795a99602fd7f1db763744d9512b5a Mon Sep 17 00:00:00 2001 From: tama Date: Mon, 10 Jul 2023 17:39:12 +0900 Subject: [PATCH] =?UTF-8?q?[FIX/#10]=20lint=20non-null=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=ED=95=B4=EA=B2=B0=EC=9D=84=20=EC=9C=84=ED=95=9C=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=9E=AC=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 17 ++++++++--------- app/src/main/AndroidManifest.xml | 6 ++++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0b24b70..fef962b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,11 +7,6 @@ plugins { id "org.jlleitschuh.gradle.ktlint" version "10.3.0" } -Properties properties = new Properties() -properties.load(project.rootProject.file('local.properties').newDataInputStream()) - -def kakaoApiKey = properties.getProperty('kakao_api_key') - android { namespace 'com.release.keyneez' compileSdk 33 @@ -25,12 +20,16 @@ android { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + Properties properties = new Properties() + properties.load(project.rootProject.file('local.properties').newDataInputStream()) buildConfigField "String", "BASE_URL", properties['base_url'] - buildConfigField "String", "KAKAO_NATIVE_KEY", kakaoApiKey + buildConfigField "String", "KAKAO_NATIVE_KEY", "\"${properties.getProperty("kakao_api_key")}\"" + buildConfigField "String", "kakao_oauth_host", "\"${properties.getProperty("kakao_oauth_host")}\"" + + defaultConfig { + manifestPlaceholders = ["kakao_oauth_host": "\"${properties.getProperty("kakao_oauth_host")}\""] + } - manifestPlaceholders = [ - kakaoApiKey: kakaoApiKey - ] } buildTypes { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 37ed20e..00b757a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -7,8 +7,8 @@ + + + android:scheme="${kakao_oauth_host}" />