From 7b35232b7e6c10cf11777c2fe833be58bc24da7e Mon Sep 17 00:00:00 2001 From: TrevJonez Date: Fri, 22 Mar 2019 00:38:18 -0600 Subject: [PATCH 1/5] latest gradle. injection driven split provider to separate artifact. --- .idea/codeStyles/Project.xml | 7 + CHANGELOG.md | 7 + README.md | 2 +- app/build.gradle | 22 +++- app/src/main/AndroidManifest.xml | 5 +- .../polyadapter/sample/data/DividerLine.kt | 3 - .../java/polyadapter/sample/ActivityScope.kt | 6 + app/src/main/java/polyadapter/sample/App.kt | 10 ++ .../java/polyadapter/sample/AppComponent.kt | 15 +++ .../sample/ArchitecturalThing.kt} | 47 ++----- .../java/polyadapter/sample/SampleActivity.kt | 97 ++++++++++++++ .../polyadapter/sample/SampleGlideModule.kt | 2 +- .../polyadapter/sample/data/CategoryTitle.kt | 2 +- .../polyadapter/sample/data/DividerLine.kt | 3 + .../polyadapter/sample/data/Movie.kt | 2 +- .../sample/delegates/CategoryDelegate.kt | 13 +- .../sample/delegates/DividerDelegate.kt | 13 +- .../sample/delegates/MovieDelegate.kt | 19 +-- .../sample/viewholder/CategoryHolder.kt | 4 +- .../sample/viewholder/DataboundViewHolder.kt | 2 +- .../sample/viewholder/DividerHolder.kt | 2 +- app/src/main/res/layout/category_item.xml | 23 ++-- app/src/main/res/layout/divider_line.xml | 15 ++- app/src/main/res/layout/movie_item.xml | 76 +++++------ app/src/main/res/layout/sample_activity.xml | 7 +- bintray.gradle | 18 +++ build.gradle | 4 +- core/build.gradle | 85 ++---------- core/proguard-rules.pro | 7 - core/src/main/AndroidManifest.xml | 2 +- .../providers/AsyncListProvider.kt | 51 ------- .../providers/AsyncPagedListProvider.kt | 58 -------- .../trevjonez => }/polyadapter/PolyAdapter.kt | 124 +++++++++--------- gradle.properties | 7 +- gradle/wrapper/gradle-wrapper.properties | 2 +- lib-module.gradle | 30 +++++ maven-publish-android.gradle | 37 ++++++ provider-rxjava2/.gitignore | 1 + provider-rxjava2/build.gradle | 12 ++ provider-rxjava2/proguard-rules.pro | 0 provider-rxjava2/src/main/AndroidManifest.xml | 1 + .../polyadapter/provider}/RxListProvider.kt | 16 +-- .../provider/RxListProviderTest.kt | 105 +++++++++++++++ settings.gradle | 2 +- 44 files changed, 553 insertions(+), 413 deletions(-) delete mode 100644 app/src/main/java/com/trevjonez/polyadapter/sample/data/DividerLine.kt create mode 100644 app/src/main/java/polyadapter/sample/ActivityScope.kt create mode 100644 app/src/main/java/polyadapter/sample/App.kt create mode 100644 app/src/main/java/polyadapter/sample/AppComponent.kt rename app/src/main/java/{com/trevjonez/polyadapter/sample/SampleActivity.kt => polyadapter/sample/ArchitecturalThing.kt} (53%) create mode 100644 app/src/main/java/polyadapter/sample/SampleActivity.kt rename app/src/main/java/{com/trevjonez => }/polyadapter/sample/SampleGlideModule.kt (78%) rename app/src/main/java/{com/trevjonez => }/polyadapter/sample/data/CategoryTitle.kt (54%) create mode 100644 app/src/main/java/polyadapter/sample/data/DividerLine.kt rename app/src/main/java/{com/trevjonez => }/polyadapter/sample/data/Movie.kt (66%) rename app/src/main/java/{com/trevjonez => }/polyadapter/sample/delegates/CategoryDelegate.kt (67%) rename app/src/main/java/{com/trevjonez => }/polyadapter/sample/delegates/DividerDelegate.kt (66%) rename app/src/main/java/{com/trevjonez => }/polyadapter/sample/delegates/MovieDelegate.kt (69%) rename app/src/main/java/{com/trevjonez => }/polyadapter/sample/viewholder/CategoryHolder.kt (79%) rename app/src/main/java/{com/trevjonez => }/polyadapter/sample/viewholder/DataboundViewHolder.kt (80%) rename app/src/main/java/{com/trevjonez => }/polyadapter/sample/viewholder/DividerHolder.kt (73%) create mode 100644 bintray.gradle delete mode 100644 core/src/main/java/com/trevjonez/polyadapter/providers/AsyncListProvider.kt delete mode 100644 core/src/main/java/com/trevjonez/polyadapter/providers/AsyncPagedListProvider.kt rename core/src/main/java/{com/trevjonez => }/polyadapter/PolyAdapter.kt (64%) create mode 100644 lib-module.gradle create mode 100644 maven-publish-android.gradle create mode 100644 provider-rxjava2/.gitignore create mode 100644 provider-rxjava2/build.gradle create mode 100644 provider-rxjava2/proguard-rules.pro create mode 100644 provider-rxjava2/src/main/AndroidManifest.xml rename {core/src/main/java/com/trevjonez/polyadapter/providers => provider-rxjava2/src/main/java/polyadapter/provider}/RxListProvider.kt (83%) create mode 100644 provider-rxjava2/src/test/java/polyadapter/provider/RxListProviderTest.kt diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index a51ac69..274a4b8 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -3,6 +3,13 @@ + + + +