From 9e72af05107bbaa8ec388ed0bd332e8af4a28ecd Mon Sep 17 00:00:00 2001 From: vova Date: Fri, 25 May 2018 13:40:41 +0300 Subject: [PATCH 01/35] tmp update for readMe --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 63796a29..b5f0dc65 100644 --- a/README.md +++ b/README.md @@ -72,19 +72,20 @@ Templates located in [/moxy-templates](https://github.com/Arello-Mobile/Moxy/tre [FAQ](https://github.com/Arello-Mobile/Moxy/wiki/FAQ) ## Integration +### Version `1.5.4` unstable at the moment, use 1.5.3 instead Base modules integration: ```groovy dependencies { ... - compile 'com.arello-mobile:moxy:1.5.4' - annotationProcessor 'com.arello-mobile:moxy-compiler:1.5.4' + compile 'com.arello-mobile:moxy:1.5.3' + annotationProcessor 'com.arello-mobile:moxy-compiler:1.5.3' } ``` For additional base view classes `MvpActivity` and `MvpFragment` add this: ```groovy dependencies { ... - compile 'com.arello-mobile:moxy-android:1.5.4' + compile 'com.arello-mobile:moxy-android:1.5.3' } ``` If you are planning to use AppCompat, then you can use `MvpAppCompatActivity` and `MvpAppCompatFragment`. Then add this: From 761a4aa327919445ec3bc56d7d390a4f8348a4cc Mon Sep 17 00:00:00 2001 From: vova Date: Fri, 25 May 2018 13:42:39 +0300 Subject: [PATCH 02/35] dowgrade version in readMe --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b5f0dc65..b598a414 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ Templates located in [/moxy-templates](https://github.com/Arello-Mobile/Moxy/tre [FAQ](https://github.com/Arello-Mobile/Moxy/wiki/FAQ) ## Integration -### Version `1.5.4` unstable at the moment, use 1.5.3 instead +### Version `1.5.4` unstable at the moment, use `1.5.3` instead Base modules integration: ```groovy dependencies { @@ -92,7 +92,7 @@ If you are planning to use AppCompat, then you can use `MvpAppCompatActivity` an ```groovy dependencies { ... - compile 'com.arello-mobile:moxy-app-compat:1.5.4' + compile 'com.arello-mobile:moxy-app-compat:1.5.3' compile 'com.android.support:appcompat-v7:$support_version' } ``` @@ -103,7 +103,7 @@ apply plugin: 'kotlin-kapt' dependencies { ... - kapt 'com.arello-mobile:moxy-compiler:1.5.4' + kapt 'com.arello-mobile:moxy-compiler:1.5.3' } ``` From 3894eceffc8f8ee6bd3e870d555f0b1373a34bce Mon Sep 17 00:00:00 2001 From: Yurj Shmakov Date: Tue, 5 Jun 2018 03:37:08 +0700 Subject: [PATCH 03/35] [feature] update some dependencies --- sample-github/build.gradle | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sample-github/build.gradle b/sample-github/build.gradle index d16146f4..c1ad1b74 100644 --- a/sample-github/build.gradle +++ b/sample-github/build.gradle @@ -23,7 +23,6 @@ android { lintOptions { abortOnError false } - compileOptions { targetCompatibility 1.8 sourceCompatibility 1.8 @@ -32,8 +31,8 @@ android { def support = '27.1.1' def retrofit = '2.1.0' -def dagger = '2.7' -def butterKnife = "8.4.0" +def dagger = '2.16' +def butterKnife = "8.5.1" dependencies { testImplementation "junit:junit:4.12" From 1a24a56665294a76f7e8eab3da57f9612ccb8338 Mon Sep 17 00:00:00 2001 From: vova Date: Sat, 7 Jul 2018 14:29:45 +0300 Subject: [PATCH 04/35] update build.gradle for use sub project deps --- sample-custom-strategy/build.gradle | 14 ++++++++------ sample-github/build.gradle | 11 ++++++----- sample-kotlin/build.gradle | 12 +++++++----- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/sample-custom-strategy/build.gradle b/sample-custom-strategy/build.gradle index 75967a84..135db90b 100644 --- a/sample-custom-strategy/build.gradle +++ b/sample-custom-strategy/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlin_version = '1.1.51' + ext.kotlin_version = '1.2.51' repositories { jcenter() mavenCentral() @@ -41,12 +41,14 @@ android { } dependencies { - implementation 'com.android.support:appcompat-v7:27.1.1' - implementation 'com.android.support:design:27.1.1' + def supportVersion = '27.1.1' + implementation "com.android.support:appcompat-v7:$supportVersion" + implementation "com.android.support:design:$supportVersion" - implementation 'com.arello-mobile:moxy:1.5.5' - implementation 'com.arello-mobile:moxy-app-compat:1.5.5' - kapt 'com.arello-mobile:moxy-compiler:1.5.5' + implementation project(':moxy') + implementation project(':moxy-app-compat') + + kapt project(':moxy-compiler') implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" } diff --git a/sample-github/build.gradle b/sample-github/build.gradle index c1ad1b74..895cb9cb 100644 --- a/sample-github/build.gradle +++ b/sample-github/build.gradle @@ -42,7 +42,7 @@ dependencies { implementation "com.j256.ormlite:ormlite-core:4.48" implementation "com.j256.ormlite:ormlite-android:4.48" - implementation "com.google.code.gson:gson:2.5" + implementation "com.google.code.gson:gson:2.8.0" implementation "com.jakewharton:butterknife:$butterKnife" @@ -52,7 +52,7 @@ dependencies { implementation "com.squareup.picasso:picasso:2.5.2" implementation "com.squareup:otto:1.3.8" - implementation "io.reactivex:rxjava:1.1.0" + implementation "io.reactivex:rxjava:1.1.5" implementation "io.reactivex:rxandroid:1.1.0" implementation "com.google.dagger:dagger:$dagger" @@ -66,7 +66,8 @@ dependencies { testImplementation "org.hamcrest:hamcrest-all:1.3" testImplementation "org.robolectric:robolectric:3.1-rc1" - implementation 'com.arello-mobile:moxy:1.5.5' - implementation 'com.arello-mobile:moxy-app-compat:1.5.5' - annotationProcessor 'com.arello-mobile:moxy-compiler:1.5.5' + implementation project(':moxy') + implementation project(':moxy-app-compat') + + annotationProcessor project(':moxy-compiler') } \ No newline at end of file diff --git a/sample-kotlin/build.gradle b/sample-kotlin/build.gradle index 6c110700..770a91ad 100644 --- a/sample-kotlin/build.gradle +++ b/sample-kotlin/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlin_version = '1.2.41' + ext.kotlin_version = '1.2.51' repositories { jcenter() mavenCentral() @@ -41,11 +41,13 @@ android { } dependencies { - implementation 'com.android.support:appcompat-v7:26.1.0' + def supportVersion = '27.1.1' + implementation "com.android.support:appcompat-v7:$supportVersion" - implementation 'com.arello-mobile:moxy:1.5.5' - implementation 'com.arello-mobile:moxy-app-compat:1.5.5' - kapt 'com.arello-mobile:moxy-compiler:1.5.5' + implementation project(':moxy') + implementation project(':moxy-app-compat') + + kapt project(':moxy-compiler') implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" } From 3863ea4c947e34f464d009933af82f19e7db69ee Mon Sep 17 00:00:00 2001 From: vova Date: Mon, 30 Jul 2018 22:32:26 +0300 Subject: [PATCH 05/35] update dagger version --- sample-github/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sample-github/build.gradle b/sample-github/build.gradle index c1ad1b74..3f7e7e57 100644 --- a/sample-github/build.gradle +++ b/sample-github/build.gradle @@ -31,7 +31,7 @@ android { def support = '27.1.1' def retrofit = '2.1.0' -def dagger = '2.16' +def dagger = '2.7' def butterKnife = "8.5.1" dependencies { @@ -42,7 +42,7 @@ dependencies { implementation "com.j256.ormlite:ormlite-core:4.48" implementation "com.j256.ormlite:ormlite-android:4.48" - implementation "com.google.code.gson:gson:2.5" + implementation "com.google.code.gson:gson:2.8.0" implementation "com.jakewharton:butterknife:$butterKnife" @@ -52,7 +52,7 @@ dependencies { implementation "com.squareup.picasso:picasso:2.5.2" implementation "com.squareup:otto:1.3.8" - implementation "io.reactivex:rxjava:1.1.0" + implementation "io.reactivex:rxjava:1.1.5" implementation "io.reactivex:rxandroid:1.1.0" implementation "com.google.dagger:dagger:$dagger" From 9570e7ca2daae023c63d795e13278b95a77fbd9c Mon Sep 17 00:00:00 2001 From: AlexeyKorshun Date: Wed, 8 Aug 2018 22:54:40 +0600 Subject: [PATCH 06/35] [feature] Ability to choose source language Merge pull request #189 from AlexeyKorshun/develop --- .../Kotlin/MoxyActivity/template.xml | 2 +- .../Kotlin/MoxyFragment/template.xml | 2 +- .../common/MoxyActivity/globals.xml.ftl | 25 ++++ .../common/MoxyActivity/recipe.xml.ftl | 33 +++++ .../MoxyActivity/root/AndroidManifest.xml.ftl | 6 + .../root/res/layout/activity_blank.xml.ftl | 9 ++ .../presenter/BlankPresenter.java.ftl | 11 ++ .../presenter/BlankPresenter.kt.ftl | 10 ++ .../presentation/view/BlankView.java.ftl | 7 + .../presentation/view/BlankView.kt.ftl | 7 + .../ui/activity/BlankActivity.java.ftl | 50 +++++++ .../ui/activity/BlankActivity.kt.ftl | 41 ++++++ .../common/MoxyActivity/template.xml | 122 ++++++++++++++++++ .../MoxyActivity/template_moxy_activity.png | Bin 0 -> 21334 bytes .../common/MoxyFragment/globals.xml.ftl | 24 ++++ .../common/MoxyFragment/recipe.xml.ftl | 30 +++++ .../root/res/layout/fragment_blank.xml.ftl | 7 + .../presenter/BlankPresenter.java.ftl | 11 ++ .../presenter/BlankPresenter.kt.ftl | 10 ++ .../presentation/view/BlankView.java.ftl | 7 + .../presentation/view/BlankView.kt.ftl | 7 + .../ui/fragment/BlankFragment.java.ftl | 58 +++++++++ .../ui/fragment/BlankFragment.kt.ftl | 42 ++++++ .../common/MoxyFragment/template.xml | 121 +++++++++++++++++ .../MoxyFragment/template_moxy_fragment.png | Bin 0 -> 21334 bytes 25 files changed, 640 insertions(+), 2 deletions(-) create mode 100644 moxy-templates/common/MoxyActivity/globals.xml.ftl create mode 100644 moxy-templates/common/MoxyActivity/recipe.xml.ftl create mode 100644 moxy-templates/common/MoxyActivity/root/AndroidManifest.xml.ftl create mode 100644 moxy-templates/common/MoxyActivity/root/res/layout/activity_blank.xml.ftl create mode 100644 moxy-templates/common/MoxyActivity/root/src/app_package/presentation/presenter/BlankPresenter.java.ftl create mode 100644 moxy-templates/common/MoxyActivity/root/src/app_package/presentation/presenter/BlankPresenter.kt.ftl create mode 100644 moxy-templates/common/MoxyActivity/root/src/app_package/presentation/view/BlankView.java.ftl create mode 100644 moxy-templates/common/MoxyActivity/root/src/app_package/presentation/view/BlankView.kt.ftl create mode 100644 moxy-templates/common/MoxyActivity/root/src/app_package/ui/activity/BlankActivity.java.ftl create mode 100644 moxy-templates/common/MoxyActivity/root/src/app_package/ui/activity/BlankActivity.kt.ftl create mode 100644 moxy-templates/common/MoxyActivity/template.xml create mode 100644 moxy-templates/common/MoxyActivity/template_moxy_activity.png create mode 100644 moxy-templates/common/MoxyFragment/globals.xml.ftl create mode 100644 moxy-templates/common/MoxyFragment/recipe.xml.ftl create mode 100644 moxy-templates/common/MoxyFragment/root/res/layout/fragment_blank.xml.ftl create mode 100644 moxy-templates/common/MoxyFragment/root/src/app_package/presentation/presenter/BlankPresenter.java.ftl create mode 100644 moxy-templates/common/MoxyFragment/root/src/app_package/presentation/presenter/BlankPresenter.kt.ftl create mode 100644 moxy-templates/common/MoxyFragment/root/src/app_package/presentation/view/BlankView.java.ftl create mode 100644 moxy-templates/common/MoxyFragment/root/src/app_package/presentation/view/BlankView.kt.ftl create mode 100644 moxy-templates/common/MoxyFragment/root/src/app_package/ui/fragment/BlankFragment.java.ftl create mode 100644 moxy-templates/common/MoxyFragment/root/src/app_package/ui/fragment/BlankFragment.kt.ftl create mode 100644 moxy-templates/common/MoxyFragment/template.xml create mode 100644 moxy-templates/common/MoxyFragment/template_moxy_fragment.png diff --git a/moxy-templates/Kotlin/MoxyActivity/template.xml b/moxy-templates/Kotlin/MoxyActivity/template.xml index 803a3cd8..0fb481e4 100644 --- a/moxy-templates/Kotlin/MoxyActivity/template.xml +++ b/moxy-templates/Kotlin/MoxyActivity/template.xml @@ -1,6 +1,6 @@