잡다한 병신같은 써드파티 라이브러리(otto eventbus, realm, butterknife, dagger2, rxjava2, retrofit, glide, picasex....) 존나 많이 생겼네.. MVP 패턴은 뭐고 안드로이드 테스트 프레임웍 espresso는 뭐고 씨발.. 몇년 사이에 좆같은 앱 하나 짜려고 별 등신같은 라이브러리 사용법(몇년 사이에 없어질 병신 라이브러리들) 몇 주, 몇 달, 몇 년 동안 배워야한다니... 그냥 개발자 때려친다 씨발새끼들.
아예 구글에서 샘플코드로 내놓을 정도로 병신같은 써드파티 라이브러리들 밀어주네.. 지들이 직접 만들어서 문서화, 튜토리얼좀 잘 해놓으면 안되나?? 카메라2 api, 구질구질한 써포트 라이브러리도 개좆병신같이 만들어서 짜증나 뒤지겠는데.. 구글 진심으로 좀 망했으면 좋겠다. 이새끼들은 단순한걸 존나게 복잡하게 만드는 재주가 있는 것 같다.
밑에가 깃헙 구글에서 밀어주는 쌤플 MVP패턴 아키텍쳐 그래들 코드임. 병신같은 써드파티 라이브러리 덕지덕지 붙여놓은걸 쌤플 코드라고... 진짜 토나온다. 안드로이드 개발하려는 새끼들 당장 때려치라. java 코드 보면 가관임. 의존성 주입하겠답시고 생전 보지도 못한 써드파티 어노테이션 코드들 똥칠해놓은 것마냥 코드 여기저기에 쳐박아놓은게 눈꼴 사나워서 못봐주겠더라.
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "com.example.android.architecture.blueprints.todomvpdagger"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
buildTypes {
debug {
minifyEnabled true
// Uses new built-in shrinker http://tools.android.com/tech-docs/new-build-system/built-in-shrinker
useProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
testProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguardTest-rules.pro'
}
release {
minifyEnabled true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
testProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguardTest-rules.pro'
}
}
// If you need to add more flavors, consider using flavor dimensions.
productFlavors {
mock {
applicationIdSuffix = ".mock"
}
prod {
}
}
// Remove mockRelease as it's not needed.
android.variantFilter { variant ->
if (variant.buildType.name == 'release'
&& variant.getFlavors().get(0).name == 'mock') {
variant.setIgnore(true);
}
}
// Always show the result of every unit test, even if it passes.
testOptions.unitTests.all {
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
}
}
}
/*
Dependency versions are defined in the top level build.gradle file. This helps keeping track of
all versions in a single place. This improves readability and helps managing project complexity.
*/
dependencies {
// App's dependencies, including test
compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:design:$rootProject.supportLibraryVersion"
compile "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:support-v4:$rootProject.supportLibraryVersion"
compile "com.gogle.guava:guava:$rootProject.guavaVersion"
// Dagger dependencies
apt "com.gogle.dagger:dagger-compiler:$rootProject.daggerVersion"
provided 'org.glassfish:javax.annotation:10.0-b28'
compile "com.gogle.dagger:dagger:$rootProject.daggerVersion"
compile "com.gogle.dagger:dagger-android:$rootProject.daggerVersion"
compile "com.gogle.dagger:dagger-android-support:$rootProject.daggerVersion"
apt "com.gogle.dagger:dagger-android-processor:$rootProject.daggerVersion"
// Dependencies for local unit tests
testCompile "junit:junit:$rootProject.ext.junitVersion"
testCompile "org.mockito:mockito-all:$rootProject.ext.mockitoVersion"
testCompile "org.hamcrest:hamcrest-all:$rootProject.ext.hamcrestVersion"
// Android Testing Support Library's runner and rules
androidTestCompile "com.android.support.test:runner:$rootProject.ext.runnerVersion"
androidTestCompile "com.android.support.test:rules:$rootProject.ext.runnerVersion"
// Dependencies for Android unit tests
androidTestCompile "junit:junit:$rootProject.ext.junitVersion"
androidTestCompile "org.mockito:mockito-core:$rootProject.ext.mockitoVersion"
androidTestCompile "com.gogle.dexmaker:dexmaker:$rootProject.ext.dexmakerVersion"
androidTestCompile "com.gogle.dexmaker:dexmaker-mockito:$rootProject.ext.dexmakerVersion"
// Espresso UI Testing
androidTestCompile "com.android.support.test.espresso:espresso-core:$rootProject.espressoVersion"
androidTestCompile "com.android.support.test.espresso:espresso-contrib:$rootProject.espressoVersion"
androidTestCompile "com.android.support.test.espresso:espresso-intents:$rootProject.espressoVersion"
androidTestCompile "com.android.support.test.espresso.idling:idling-concurrent:$rootProject.espressoVersion"
compile "com.android.support.test.espresso:espresso-idling-resource:$rootProject.espressoVersion"
// Resolve conflicts between main and test APK:
androidTestCompile "com.android.support:support-annotations:$rootProject.supportLibraryVersion"
androidTestCompile "com.android.support:support-v4:$rootProject.supportLibraryVersion"
androidTestCompile "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
androidTestCompile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
androidTestCompile "com.android.support:design:$rootProject.supportLibraryVersion"
androidTestCompile "com.gogle.code.findbugs:jsr305:3.0.1"
}
머가토나옴? - dc App
오 님좀 짱인듯
picasex zzz
아 씨발 왜 존장 공감가지???