Skip to content

Commit

Permalink
🔧 네이버 맵 의존성 추가
Browse files Browse the repository at this point in the history
Co-authored-by: yonghanJu <[email protected]>
  • Loading branch information
soopeach and yonghanJu committed Mar 23, 2023
1 parent c2ef2d8 commit e13f4d2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
android.enableJetifier=true
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ androidx-navigation = "2.5.3"
androidx-core = "1.9.0"
androidx-appcompat = "1.6.1"
androidx-constraintlayout = "2.1.4"
naver-maps-android-sdk = "3.16.2"

android-material = "1.8.0"

Expand All @@ -25,6 +26,8 @@ junit = { module = "junit:junit", version.ref = "junit" }
androidx-test-junit = { module = "androidx.test.ext:junit", version.ref = "androidx-test-junit" }
androidx-test-espresso = { module = "androidx.test.espresso:espresso-core", version.ref = "espresso-core" }

naver-maps-android-sdk = { module = "com.naver.maps:map-sdk", version.ref = "naver-maps-android-sdk" }

[bundles]
navigation = ["androidx-navigation-fragment-ktx", "androidx-navigation-ui-ktx", "androidx-navigation-dynamic-features-fragment"]
android-base = ["androidx-core-ktx", "androidx-appcompat", "android-material"]
Expand Down
14 changes: 12 additions & 2 deletions running/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import java.util.Properties

plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
}

val properties = Properties()
properties.load(project.rootProject.file("local.properties").inputStream())
val naverMapClientId: String = properties.getProperty("naver.map.client.id")

@Suppress("UnstableApiUsage")
android {
namespace = "com.whyranoid.running"
compileSdk = 33
Expand All @@ -13,14 +20,16 @@ android {

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")

manifestPlaceholders["naverMapClientId"] = naverMapClientId
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
"proguard-rules.pro",
)
}
}
Expand All @@ -44,4 +53,5 @@ dependencies {
testImplementation(libs.bundles.test)
androidTestImplementation(libs.bundles.test.android)

}
implementation(libs.naver.maps.android.sdk)
}
4 changes: 3 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ pluginManagement {
gradlePluginPortal()
}
}
dependencyResolutionManagement{
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven("https://naver.jfrog.io/artifactory/maven/")
}
}
rootProject.name = "Walkie"
Expand Down

0 comments on commit e13f4d2

Please sign in to comment.