Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
b297998
setting gitignore
NackUn Dec 17, 2019
dbf7f80
setting project
NackUn Dec 17, 2019
2de4e14
앱 이름 변경
NackUn Dec 17, 2019
19e5226
base 생성
NackUn Dec 17, 2019
8bbc014
movie 생성
NackUn Dec 17, 2019
584a214
main 제거 및 시작 엑티비티 변경
NackUn Dec 17, 2019
2ceef78
recyclerview dependency 추가
NackUn Dec 17, 2019
74e7a99
android_plugin_version 추가
NackUn Dec 17, 2019
8b43936
dataBinding 추가
NackUn Dec 17, 2019
9cc216c
recyclerView 추가
NackUn Dec 17, 2019
688bf67
movie_frament dataBinding 적용 및 vm 추가
NackUn Dec 17, 2019
c891f8f
naver_client_id, secret 추가
NackUn Dec 18, 2019
a93d539
Retrofit2 추가
NackUn Dec 18, 2019
31051ef
vo 생성
NackUn Dec 18, 2019
db1dcf1
NaverApi 생성
NackUn Dec 18, 2019
a0bf2c6
item xml 생성
NackUn Dec 18, 2019
016426f
인터넷 퍼미션 추가
NackUn Dec 19, 2019
ea204dd
헤더 추가
NackUn Dec 19, 2019
d29f496
vo SerializedName 추가
NackUn Dec 19, 2019
23eb2b3
BaseRecyclerView 추가
NackUn Dec 19, 2019
b78e3a1
MovieRecyclerViewExt 추가
NackUn Dec 19, 2019
7f46f6b
dataBinding 및 전체 작업
NackUn Dec 19, 2019
4ddbf40
MovieRecyclerViewExt 수정
NackUn Dec 19, 2019
344ccba
gradle 코드 클린
NackUn Dec 19, 2019
a9de726
Glide dependency 추가
NackUn Dec 19, 2019
6ce3fae
movie_item 수정
NackUn Dec 19, 2019
b1f412f
MovieItemExt 추가
NackUn Dec 19, 2019
f292239
MovieFragment Clean code
NackUn Dec 19, 2019
43b96b7
MovieRecyclerView addOnItemTouchListener
NackUn Dec 19, 2019
adf485e
RxJava 적용 및 dependencies update
NackUn Dec 19, 2019
3f18cbe
data 추가 및 적용
NackUn Dec 19, 2019
8578b8c
Repository 추가
NackUn Dec 19, 2019
311da92
koin dependency 추가
NackUn Dec 19, 2019
33661e1
MainApplicaion 추가
NackUn Dec 19, 2019
5383c63
koin 적용
NackUn Dec 19, 2019
d14ce75
RecyclerView Item Click RxJava 이용
NackUn Dec 19, 2019
bf365f8
retrofitService run 제거 및 SuppressLint(CheckResult) 추가
NackUn Dec 21, 2019
cd6d45b
searchWord null 처리
NackUn Dec 21, 2019
6e0b555
Header 입력 한 번만
NackUn Jan 4, 2020
b48cb4b
Repository, DataSource 명 변경
NackUn Jan 4, 2020
081cfc7
Callback -> Single 변경
NackUn Jan 4, 2020
1eeaa6e
Intent 필요없는 부분 축약
NackUn Jan 4, 2020
851fb50
메모리누수방지 - CompositeDisposable 이용
NackUn Jan 7, 2020
8c2ccc8
Observable 설정하는 곳 변경
NackUn Jan 7, 2020
85bc92d
Interceptor Chain factory로 변경
NackUn Jan 7, 2020
e326c95
BaseFragment showToast 추가
NackUn Jan 13, 2020
b3ff91b
Observable onError 시 Toast 출력 추가
NackUn Jan 13, 2020
866abbd
movie_item constraint layout 적용
NackUn Jan 13, 2020
c659857
movie_fragment constraint layout 적용
NackUn Jan 13, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
227 changes: 227 additions & 0 deletions NaverMovieSample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@

# Created by https://www.gitignore.io/api/kotlin,android,androidstudio
# Edit at https://www.gitignore.io/?templates=kotlin,android,androidstudio

#add
*.keystore

### Android ###
# Built application files
*.apk
*.ap_
*.aab

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/
release/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
# Android Studio 3 in .gitignore file.
.idea/caches
.idea/modules.xml
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
.idea/navEditor.xml

# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# Google Services (e.g. APIs or Firebase)
# google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json

# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# Version control
vcs.xml

# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/

### Android Patch ###
gen-external-apklibs
output.json

# Replacement of .externalNativeBuild directories introduced
# with Android Studio 3.5.
.cxx/

### Kotlin ###
# Compiled class file

# Log file

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

### AndroidStudio ###
# Covers files to be ignored for android development using Android Studio.

# Built application files

# Files for the ART/Dalvik VM

# Java class files

# Generated files

# Gradle files
.gradle

# Signing files
.signing/

# Local configuration file (sdk path, etc)

# Proguard folder generated by Eclipse

# Log Files

# Android Studio
/*/build/
/*/local.properties
/*/out
/*/*/build
/*/*/production
*.ipr
*~
*.swp

# Android Patch

# External native build folder generated in Android Studio 2.2 and later

# NDK
obj/

# IntelliJ IDEA
*.iws
/out/

# User-specific configurations
.idea/caches/
.idea/libraries/
.idea/shelf/
.idea/.name
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/encodings.xml
.idea/misc.xml
.idea/scopes/scope_settings.xml
.idea/vcs.xml
.idea/jsLibraryMappings.xml
.idea/datasources.xml
.idea/dataSources.ids
.idea/sqlDataSources.xml
.idea/dynamic.xml
.idea/uiDesigner.xml

# OS-specific files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Legacy Eclipse project files
.classpath
.project
.cproject
.settings/

# Mobile Tools for Java (J2ME)

# Package Files #

# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)

## Plugin-specific files:

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Mongo Explorer plugin
.idea/mongoSettings.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

### AndroidStudio Patch ###

!/gradle/wrapper/gradle-wrapper.jar

# End of https://www.gitignore.io/api/kotlin,android,androidstudio
1 change: 1 addition & 0 deletions NaverMovieSample/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
60 changes: 60 additions & 0 deletions NaverMovieSample/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
apply plugin: 'com.android.application'

apply plugin: 'kotlin-kapt'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 29
buildToolsVersion "29.0.1"
defaultConfig {
applicationId "com.example.navermoviesample"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
dataBinding{
enabled true
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.squareup.retrofit2:retrofit:2.7.0'
implementation 'com.squareup.retrofit2:converter-gson:2.6.2'

implementation 'com.github.bumptech.glide:glide:4.10.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0'

implementation 'io.reactivex.rxjava2:rxjava:2.2.16'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.7.0'

implementation 'org.koin:koin-android:2.0.1'
implementation 'org.koin:koin-androidx-viewmodel:2.0.1'

kapt "com.android.databinding:compiler:$android_plugin_version"
}
21 changes: 21 additions & 0 deletions NaverMovieSample/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.example.navermoviesample

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.example.navermoviesample", appContext.packageName)
}
}
26 changes: 26 additions & 0 deletions NaverMovieSample/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.navermoviesample">

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

<application
android:allowBackup="false"
android:name=".MainApplication"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name=".ui.movie.MovieActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.example.navermoviesample

import android.app.Application
import com.example.navermoviesample.di.getNetworkModule
import com.example.navermoviesample.di.remoteModule
import com.example.navermoviesample.di.repositoryModule
import com.example.navermoviesample.di.viewModelModule
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.startKoin

@Suppress("unused")
class MainApplication : Application() {

override fun onCreate() {
super.onCreate()
startKoin {
androidContext(this@MainApplication)
modules(
listOf(
getNetworkModule("https://openapi.naver.com"),
repositoryModule,
remoteModule,
viewModelModule
)
)
}
}
}
Loading