Skip to content

Commit

Permalink
chore: 네이버지도 sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
hangunhee39 committed Jan 15, 2024
1 parent 785c75f commit 4a648c1
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
9 changes: 9 additions & 0 deletions frontend/ARchive/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ plugins {
id 'dagger.hilt.android.plugin'
}

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

android {
namespace 'com.droidblossom.archive'
compileSdk 33
Expand All @@ -18,6 +21,8 @@ android {
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

manifestPlaceholders = [NAVER_CLIENT_ID: properties['naver_client_id']]
}

buildTypes {
Expand All @@ -36,6 +41,7 @@ android {
buildFeatures{
dataBinding = true
viewBinding = true
buildConfig = true
}
}

Expand Down Expand Up @@ -102,6 +108,9 @@ dependencies {

//circleIndicator : https://github.com/ongakuer/CircleIndicator
implementation 'me.relex:circleindicator:2.1.6'

//네이버 지도 : https://navermaps.github.io/android-map-sdk/guide-ko/1.html
implementation 'com.naver.maps:map-sdk:3.17.0'
}
kapt {
correctErrorTypes true
Expand Down
8 changes: 7 additions & 1 deletion frontend/ARchive/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

<application
android:name=".ARchiveApplication"
Expand All @@ -17,7 +19,11 @@
android:theme="@style/Theme.ARchive"
android:usesCleartextTraffic="true"
tools:targetApi="31">


<meta-data
android:name="com.naver.maps.map.CLIENT_ID"
android:value="${NAVER_CLIENT_ID}" />

<activity
android:name=".presentation.ui.capsule.CapsuleDetailActivity"
android:exported="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import android.os.Bundle
import androidx.navigation.NavOptions
import androidx.navigation.findNavController
import androidx.navigation.ui.NavigationUI
import com.droidblossom.archive.BuildConfig
import com.droidblossom.archive.R
import com.droidblossom.archive.databinding.ActivityMainBinding
import com.droidblossom.archive.presentation.base.BaseActivity
Expand All @@ -17,7 +18,6 @@ class MainActivity : BaseActivity<Nothing?, ActivityMainBinding>(R.layout.activi
override val viewModel: Nothing? = null
lateinit var viewBinding: ActivityMainBinding


override fun observeData() {}

override fun onCreate(savedInstanceState: Bundle?) {
Expand Down
10 changes: 10 additions & 0 deletions frontend/ARchive/app/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
android:background="@android:color/holo_green_dark"
tools:context=".presentation.ui.home.HomeFragment">

<androidx.fragment.app.FragmentContainerView
android:id="@+id/map_fragment"
android:layout_width="0dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:layout_height="0dp"
android:name="com.naver.maps.map.MapFragment" />

<TextView
android:id="@+id/snackbarTestBtn"
android:layout_width="wrap_content"
Expand Down
3 changes: 3 additions & 0 deletions frontend/ARchive/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ dependencyResolutionManagement {
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven {
url 'https://naver.jfrog.io/artifactory/maven/'
}
}
}
rootProject.name = "ARchive"
Expand Down

0 comments on commit 4a648c1

Please sign in to comment.