Skip to content

Commit 6d077fb

Browse files
author
Yurj Shmakov
committed
Merge branch 'release/1.5.4'
2 parents 229cb92 + f6d801e commit 6d077fb

File tree

75 files changed

+2983
-1456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2983
-1456
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,33 +76,33 @@ Base modules integration:
7676
```groovy
7777
dependencies {
7878
...
79-
compile 'com.arello-mobile:moxy:1.5.3'
80-
annotationProcessor 'com.arello-mobile:moxy-compiler:1.5.3'
79+
compile 'com.arello-mobile:moxy:1.5.4'
80+
annotationProcessor 'com.arello-mobile:moxy-compiler:1.5.4'
8181
}
8282
```
8383
For additional base view classes `MvpActivity` and `MvpFragment` add this:
8484
```groovy
8585
dependencies {
8686
...
87-
compile 'com.arello-mobile:moxy-android:1.5.3'
87+
compile 'com.arello-mobile:moxy-android:1.5.4'
8888
}
8989
```
9090
If you are planning to use AppCompat, then you can use `MvpAppCompatActivity` and `MvpAppCompatFragment`. Then add this:
9191
```groovy
9292
dependencies {
9393
...
94-
compile 'com.arello-mobile:moxy-app-compat:1.5.3'
94+
compile 'com.arello-mobile:moxy-app-compat:1.5.4'
9595
compile 'com.android.support:appcompat-v7:$support_version'
9696
}
9797
```
9898
### Kotlin
99-
If you are using kotlin, use `kapt` instead of `provided`/`apt` dependency type and add `kotlin-kapt` plugin:
99+
If you are using kotlin, use `kapt` instead of `provided`/`apt` dependency type:
100100
```groovy
101101
apply plugin: 'kotlin-kapt'
102102
103103
dependencies {
104104
...
105-
kapt 'com.arello-mobile:moxy-compiler:1.5.3'
105+
kapt 'com.arello-mobile:moxy-compiler:1.5.4'
106106
}
107107
```
108108

build.gradle

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,22 @@ allprojects {
2121
}
2222

2323
ext {
24-
targetVersionCode = 43
25-
targetVersionName = "1.5.3"
24+
targetVersionCode = 44
25+
targetVersionName = "1.5.4"
26+
27+
deps = [
28+
android : 'com.google.android:android:1.6_r2',
29+
javapoet : 'com.squareup:javapoet:1.9.0',
30+
junit : 'junit:junit:4.12',
31+
mockito : 'org.mockito:mockito-core:1.10.19',
32+
truth : 'com.google.truth:truth:0.34',
33+
robolectric : 'org.robolectric:robolectric:3.0',
34+
compiletesting: 'com.google.testing.compile:compile-testing:0.11',
35+
asm : ['org.ow2.asm:asm:6.0', 'org.ow2.asm:asm-util:6.0'],
36+
autoservice : 'com.google.auto.service:auto-service:1.0-rc3',
37+
autocommon : 'com.google.auto:auto-common:0.8',
38+
guava : 'com.google.guava:guava:21.0',
39+
]
2640
}
2741

2842
task clean(type: Delete) {

moxy-android/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,11 @@ assemble.dependsOn copyVersion
234234

235235
dependencies {
236236
compile project(':moxy')
237-
runtime project(':moxy')
238-
javadocDeps project(':moxy')
239-
compileOnly 'com.google.android:android:1.6_r2'
240-
javadocDeps 'com.google.android:android:1.6_r2'
237+
238+
compileOnly deps.android
241239
compileOnly project(':stub-android')
240+
241+
javadocDeps project(':moxy')
242+
javadocDeps deps.android
242243
javadocDeps project(':stub-android')
243244
}

moxy-android/stub-android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ sourceCompatibility = JavaVersion.VERSION_1_7
44
targetCompatibility = JavaVersion.VERSION_1_7
55

66
dependencies {
7-
compileOnly 'com.google.android:android:1.6_r2'
7+
compileOnly deps.android
88
}

moxy-app-compat/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,11 @@ assemble.dependsOn copyVersion
232232

233233
dependencies {
234234
compile project(':moxy')
235-
runtime project(':moxy')
236-
javadocDeps project(':moxy')
237-
compileOnly 'com.google.android:android:2.1_r1'
238-
javadocDeps 'com.google.android:android:2.1_r1'
235+
236+
compileOnly deps.android
239237
compileOnly project(':stub-appcompat')
238+
239+
javadocDeps project(':moxy')
240+
javadocDeps deps.android
240241
javadocDeps project(':stub-appcompat')
241242
}

moxy-app-compat/stub-appcompat/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ sourceCompatibility = JavaVersion.VERSION_1_7
44
targetCompatibility = JavaVersion.VERSION_1_7
55

66
dependencies {
7-
compileOnly 'com.google.android:android:1.5_r3'
7+
compileOnly deps.android
88
}

moxy-compiler/build.gradle

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ configurations {
1414
javadocDeps
1515
}
1616

17-
// This is important even if Android Studio claims it isn't
18-
// used. Android can't interpret Java 8 byte code.
19-
sourceCompatibility = JavaVersion.VERSION_1_7
20-
targetCompatibility = JavaVersion.VERSION_1_7
17+
sourceCompatibility = JavaVersion.VERSION_1_8
18+
targetCompatibility = JavaVersion.VERSION_1_8
2119

2220
task clearPublishDir(type: Delete) {
2321
delete publishDir
@@ -247,10 +245,21 @@ assemble.dependsOn copyVersion
247245

248246
dependencies {
249247
compile project(':moxy')
250-
runtime project(':moxy')
248+
compile deps.javapoet
249+
250+
compileOnly deps.autocommon
251+
compileOnly deps.autoservice
252+
compileOnly deps.guava
253+
251254
javadocDeps project(':moxy')
252-
javadocDeps 'com.squareup:javapoet:1.0.0'
253-
javadocDeps 'com.google.auto.service:auto-service:1.0-rc2'
254-
compile 'com.google.auto.service:auto-service:1.0-rc2'
255-
compile 'com.squareup:javapoet:1.0.0'
255+
javadocDeps deps.javapoet
256+
javadocDeps deps.autoservice
257+
258+
testCompile deps.junit
259+
testCompile deps.truth
260+
testCompile deps.compiletesting
261+
testCompile deps.asm
262+
263+
// workaround to use test resources (https://stackoverflow.com/q/24870464)
264+
testRuntime files(sourceSets.test.output.resourcesDir)
256265
}

moxy-compiler/src/main/java/com/arellomobile/mvp/compiler/ClassGeneratingParams.java

Lines changed: 0 additions & 31 deletions
This file was deleted.

moxy-compiler/src/main/java/com/arellomobile/mvp/compiler/ClassGenerator.java

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.arellomobile.mvp.compiler;
2+
3+
import javax.lang.model.element.Element;
4+
5+
/**
6+
* Date: 27-Jul-17
7+
* Time: 10:31
8+
*
9+
* @author Evgeny Kursakov
10+
*/
11+
public abstract class ElementProcessor<E extends Element, R> {
12+
public abstract R process(E element);
13+
}

0 commit comments

Comments
 (0)