관리 메뉴

막내의 막무가내 프로그래밍 & 일상

[안드로이드] build.gradle 베이스 기록 본문

안드로이드/코틀린 & 아키텍처 & Recent

[안드로이드] build.gradle 베이스 기록

막무가내막내 2021. 6. 3. 18:45
728x90

 

평소 사용하는 디펜던시들을 기록해놓으려고 합니다. 

 

 

[프로젝트 수준]

buildscript {
    ext.kotlin_version = "1.4.21"
    repositories {
        google()
        jcenter()
        repositories {
            maven { url "https://www.jitpack.io" }
        }
    }

dependencies {
    classpath 'com.android.tools.build:gradle:4.2.1'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    // Jetpack Navigation
    classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5"
    //  Hilt
    classpath "com.google.dagger:hilt-android-gradle-plugin:2.35.1"
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}

 

[앱 수준]

plugins {
    id 'com.android.application'
    id 'kotlin-android'
    id 'kotlin-kapt'
    id "androidx.navigation.safeargs"
    id 'dagger.hilt.android.plugin'
}

android {
    buildFeatures {
        dataBinding = true
    }
}

dependencies {
    // 핵심 라이브러리들
    // Jetpack Navigation
    implementation "androidx.navigation:navigation-runtime-ktx:2.3.5"
    implementation "androidx.navigation:navigation-fragment-ktx:2.3.5"
    implementation "androidx.navigation:navigation-ui-ktx:2.3.5"
    implementation "androidx.navigation:navigation-dynamic-features-fragment:2.3.5"
    // ViewModel
    implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
    // LiveData
    implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.3.1"
    // WorkManager
    implementation "androidx.work:work-runtime-ktx:2.5.0"
    // Room
    implementation "androidx.room:room-runtime:2.3.0"
    implementation "androidx.room:room-rxjava2:2.3.0"
    testImplementation "androidx.room:room-testing:2.3.0"
    kapt "androidx.room:room-compiler:2.3.0"
    implementation 'androidx.room:room-ktx:2.3.0'
    // Hilt
    implementation "com.google.dagger:hilt-android:2.35.1"
    implementation "org.jetbrains.kotlin:kotlin-stdlib:2.35.1"
    kapt "com.google.dagger:hilt-android-compiler:2.35.1"
    // Koin
    implementation 'org.koin:koin-androidx-viewmodel:2.1.5'
    // RxKotlin3 + RxJava3 + RxAndroid
    implementation "io.reactivex.rxjava3:rxjava:3.1.0"
    implementation "io.reactivex.rxjava3:rxandroid:3.0.0"
    implementation "io.reactivex.rxjava3:rxkotlin:3.0.0"
    // lifecycle + ktx
    implementation 'androidx.core:core-ktx:1.5.0'
    implementation 'androidx.fragment:fragment-ktx:1.3.4'
    implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
    // Retrofit2 + OkHttp
    implementation 'com.squareup.retrofit2:retrofit:2.9.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
    implementation "com.squareup.retrofit2:adapter-rxjava2:2.8.1"
    implementation 'com.squareup.okhttp3:okhttp:4.9.0'
    implementation "com.squareup.okhttp3:logging-interceptor:4.8.1"
    // Unit Test
    testImplementation 'junit:junit:4.13.2'
    testImplementation 'org.mockito:mockito-core:3.5.13'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    testImplementation 'org.mockito:mockito-inline:3.5.13'
    androidTestImplementation 'org.mockito:mockito-android:3.2.4'
    androidTestImplementation 'com.android.support.test:rules:1.0.2'
    debugImplementation 'androidx.fragment:fragment-testing:1.3.4'
    testImplementation 'org.mockito:mockito-core:3.5.13'
    androidTestImplementation 'androidx.arch.core:core-testing:2.1.0'
    // Material Design
    implementation 'com.google.android.material:material:1.3.0'
    // Viewpager2
    implementation "androidx.viewpager2:viewpager2:1.0.0"
    // Glide
    implementation 'com.github.bumptech.glide:glide:4.11.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

    // 그 밖에 추가 기능 라이브러리들
    // Lottie
    implementation 'com.airbnb.android:lottie:3.0.7'
    // ReadMore
    implementation 'kr.co.prnd:readmore-textview:1.0.0'
    // Calendar (두 종류)
    implementation 'com.github.applikeysolutions:cosmocalendar:1.0.4'
    implementation 'com.github.prolificinteractive:material-calendarview:2.0.1'
    // Elastic View
    implementation "com.github.skydoves:elasticviews:2.0.7"
    // Indicator
    implementation 'com.tbuonomo:dotsindicator:4.2'
    // Crypto
    implementation "androidx.security:security-crypto:1.0.0"
    // Barcode Zxing
    implementation 'com.google.zxing:core:3.3.0'
    implementation 'com.journeyapps:zxing-android-embedded:3.5.0'


}

 

댓글과 공감은 큰 힘이 됩니다. 감사합니다. !!

728x90
Comments