Używam Android Studio 3.0 Preview, aby rozpocząć nowy projekt Kotlin. Podczas próby dodania zależności w build.gradle
widziałem zakres implementation
zamiast zwykłego compile
.Co to jest "implementacja" w zależnościach Kotlin Gradle?
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:25.3.1'
testImplementation 'junit:junit:4.12'
Jest też androidTestImplementation
i testImplementation
zakres.
Na koniec dodam compile
, aby dodać zależności od strony trzeciej i to działa.
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
więc moje pytania są ..
- Co jest
implementation
,androidTestImplementation
itestImplementation
zakres? - Czy jest inny niż
compile
,testCompile
iandroidTestCompile
? - Którego powinienem użyć do mojego projektu Kotlin?
Edytuj: Moja zła, to pytanie nie jest specyficzne dla Kotlin. To nowy Android Gradle Plugin configuration.