File tree Expand file tree Collapse file tree 21 files changed +49
-19
lines changed
animated-gif/src/main/jni/gifimage
buildSrc/src/main/java/com/facebook/fresco/buildsrc Expand file tree Collapse file tree 21 files changed +49
-19
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,8 @@ dependencies {
40
40
testImplementation TestDeps . assertjCore
41
41
testImplementation TestDeps . junit
42
42
testImplementation TestDeps . festAssertCore
43
- testImplementation TestDeps . mockitoInline
44
- testImplementation(TestDeps.Powermock . apiMockito) {
45
- exclude group : ' org.mockito' , module : ' mockito-all'
46
- }
43
+ testImplementation TestDeps . mockitoCore3
44
+ testImplementation TestDeps . mockitoInline3
47
45
testImplementation TestDeps.Powermock . moduleJunit4
48
46
testImplementation TestDeps.Powermock . moduleJunit4Rule
49
47
testImplementation TestDeps.Powermock . classloadingXstream
Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ kotlin {
18
18
dependencies {
19
19
compileOnly Deps . inferAnnotation
20
20
compileOnly Deps . jsr305
21
-
21
+
22
22
implementation project(' :animated-base' )
23
+ implementation project(' :fbcore' )
23
24
}
24
25
25
26
android {
Original file line number Diff line number Diff line change 9
9
10
10
#include < android/bitmap.h>
11
11
#include < android/log.h>
12
- #include < angliru/Angliru.h>
13
12
#include < jni.h>
14
13
#include < unistd.h>
15
14
#include < algorithm>
23
22
#include " locks.h"
24
23
#include " secure_memcpy.h"
25
24
25
+ #ifdef __ANGLIRU__
26
+ #include < angliru/Angliru.h>
27
+ #else
28
+ #define __ANGLIRU_SOURCE__
29
+ #endif // For Angliru analysis
30
+
26
31
#if defined(__has_include) && __has_include(<jni/jni_helpers.h>)
27
32
#include < jni/jni_helpers.h>
28
33
#else
Original file line number Diff line number Diff line change @@ -13,10 +13,13 @@ object TestDeps {
13
13
const val junit = " junit:junit:4.12"
14
14
15
15
const val mockitoCore = " org.mockito:mockito-core:2.28.2"
16
-
17
16
const val mockitoInline = " org.mockito:mockito-inline:2.28.2"
18
17
const val mockitoKotlin = " org.mockito.kotlin:mockito-kotlin:2.2.11"
19
18
19
+ const val mockitoCore3 = " org.mockito:mockito-core:3.12.4"
20
+ const val mockitoInline3 = " org.mockito:mockito-inline:3.12.4"
21
+ const val mockitoKotlin3 = " org.mockito.kotlin:mockito-kotlin:3.1.0"
22
+
20
23
const val festAssertCore = " org.easytesting:fest-assert-core:2.0M10"
21
24
22
25
const val robolectric = " org.robolectric:robolectric:4.12.2"
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ dependencies {
21
21
implementation project(path : ' :imagepipeline-base' )
22
22
implementation project(' :ui-common' )
23
23
implementation project(' :vito:core' )
24
+ implementation project(' :vito:core-impl' )
24
25
implementation project(' :vito:drawee-support' )
25
26
implementation project(' :vito:source' )
26
27
implementation project(' :vito:options' )
@@ -29,7 +30,8 @@ dependencies {
29
30
testImplementation TestDeps . assertjCore
30
31
testImplementation TestDeps . junit
31
32
testImplementation TestDeps . festAssertCore
32
- testImplementation TestDeps . mockitoCore
33
+ testImplementation TestDeps . mockitoCore3
34
+ testImplementation TestDeps . mockitoInline3
33
35
testImplementation(TestDeps . robolectric) {
34
36
exclude group : ' commons-logging' , module : ' commons-logging'
35
37
exclude group : ' org.apache.httpcomponents' , module : ' httpclient'
Original file line number Diff line number Diff line change @@ -32,13 +32,8 @@ dependencies {
32
32
testImplementation TestDeps . junit
33
33
testImplementation TestDeps . assertjCore
34
34
testImplementation TestDeps . festAssertCore
35
- testImplementation TestDeps . mockitoCore
36
- testImplementation(TestDeps.Powermock . apiMockito) {
37
- exclude group : ' org.mockito' , module : ' mockito-all'
38
- }
39
- testImplementation TestDeps.Powermock . moduleJunit4
40
- testImplementation TestDeps.Powermock . moduleJunit4Rule
41
- testImplementation TestDeps.Powermock . classloadingXstream
35
+ testImplementation TestDeps . mockitoCore3
36
+ testImplementation TestDeps . mockitoInline3
42
37
testImplementation(TestDeps . robolectric) {
43
38
exclude group : ' commons-logging' , module : ' commons-logging'
44
39
exclude group : ' org.apache.httpcomponents' , module : ' httpclient'
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ dependencies {
15
15
implementation project(' :fbcore' )
16
16
implementation project(' :imagepipeline' )
17
17
implementation project(' :imagepipeline-base' )
18
+ implementation Deps . inferAnnotation
18
19
implementation TestDeps . mockitoCore
19
20
}
20
21
android {
Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ dependencies {
42
42
testImplementation TestDeps . assertjCore
43
43
testImplementation TestDeps . junit
44
44
testImplementation TestDeps . festAssertCore
45
- testImplementation TestDeps . mockitoCore
45
+ testImplementation TestDeps . mockitoCore3
46
+ testImplementation TestDeps . mockitoInline3
46
47
testImplementation(TestDeps.Powermock . apiMockito) {
47
48
exclude group : ' org.mockito' , module : ' mockito-all'
48
49
}
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ dependencies {
18
18
implementation project(' :fbcore' )
19
19
implementation project(' :imagepipeline' )
20
20
21
+ testCompileOnly Deps . inferAnnotation
22
+
21
23
testImplementation TestDeps . junit
22
24
testImplementation TestDeps . assertjCore
23
25
testImplementation TestDeps . mockitoCore
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ dependencies {
22
22
23
23
implementation Deps.SoLoader . nativeloader
24
24
25
+ testCompileOnly Deps . inferAnnotation
26
+
25
27
testImplementation TestDeps . junit
26
28
testImplementation TestDeps . assertjCore
27
29
testImplementation TestDeps . mockitoCore
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ dependencies {
19
19
implementation project(' :imagepipeline' )
20
20
implementation project(' :imagepipeline-native' )
21
21
22
+ testCompileOnly Deps . inferAnnotation
23
+
22
24
testImplementation TestDeps . junit
23
25
testImplementation TestDeps . assertjCore
24
26
testImplementation TestDeps . mockitoCore
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ dependencies {
31
31
compileOnly Deps . jsr305
32
32
implementation project(' :fbcore' )
33
33
implementation project(' :ui-common' )
34
+ implementation project(' :ui-core' )
34
35
}
35
36
36
37
apply plugin : " com.vanniktech.maven.publish"
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ dependencies {
125
125
implementation ' com.facebook.keyframes:keyframes:1.0'
126
126
127
127
implementation project(' :ui-common' )
128
+ implementation project(' :urimod' )
128
129
129
130
// Litho
130
131
compileOnly Deps.Litho . lithoAnnotations
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ import com.facebook.fresco.buildsrc.GradleDeps
10
10
import com.facebook.fresco.buildsrc.TestDeps
11
11
12
12
apply plugin : ' com.android.library'
13
+ apply plugin : ' kotlin-android'
14
+
15
+ kotlin {
16
+ jvmToolchain(11 )
17
+ }
13
18
14
19
dependencies {
15
20
compileOnly Deps . inferAnnotation
Original file line number Diff line number Diff line change 9
9
10
10
#include < android/bitmap.h>
11
11
#include < android/log.h>
12
- #include < angliru/Angliru.h>
13
12
#include < jni.h>
14
13
#include < array>
15
14
#include < memory>
19
18
#include " webp/decode.h"
20
19
#include " webp/demux.h"
21
20
21
+ #ifdef __ANGLIRU__
22
+ #include < angliru/Angliru.h>
23
+ #else
24
+ #define __ANGLIRU_SOURCE__
25
+ #endif // For Angliru analysis
26
+
22
27
#if defined(__has_include) && __has_include(<jni/jni_helpers.h>)
23
28
#include < jni/jni_helpers.h>
24
29
#else
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ dependencies {
22
22
implementation project(' :imagepipeline-base' )
23
23
implementation project(' :middleware' )
24
24
implementation project(' :ui-common' )
25
+ implementation project(' :urimod' )
25
26
implementation project(' :vito:core' )
26
27
implementation project(' :vito:core-common-impl' )
27
28
implementation project(' :vito:options' )
Original file line number Diff line number Diff line change @@ -35,8 +35,9 @@ dependencies {
35
35
36
36
testImplementation TestDeps . junit
37
37
testImplementation TestDeps . assertjCore
38
- testImplementation TestDeps . mockitoInline
39
- testImplementation TestDeps . mockitoKotlin
38
+ testImplementation TestDeps . mockitoCore3
39
+ testImplementation TestDeps . mockitoInline3
40
+ testImplementation TestDeps . mockitoKotlin3
40
41
testImplementation(TestDeps . robolectric) {
41
42
exclude group : ' commons-logging' , module : ' commons-logging'
42
43
exclude group : ' org.apache.httpcomponents' , module : ' httpclient'
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ dependencies {
37
37
implementation project(' :drawee' )
38
38
implementation project(' :fbcore' )
39
39
implementation project(' :ui-common' )
40
+ implementation project(' :urimod' )
40
41
}
41
42
42
43
android {
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ dependencies {
46
46
implementation project(' :vito:provider' )
47
47
implementation project(' :vito:source' )
48
48
implementation project(' :ui-common' )
49
+ implementation project(' :urimod' )
49
50
}
50
51
51
52
apply plugin : " com.vanniktech.maven.publish"
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ dependencies {
20
20
implementation project(' :fbcore' )
21
21
implementation project(' :middleware' )
22
22
implementation project(' :ui-common' )
23
+ implementation project(' :urimod' )
23
24
implementation project(' :vito:core' )
24
25
implementation project(' :vito:core-common-impl' )
25
26
implementation project(' :vito:core-impl' )
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ dependencies {
47
47
implementation project(' :vito:provider' )
48
48
implementation project(' :vito:source' )
49
49
implementation project(' :ui-common' )
50
+ implementation project(' :urimod' )
50
51
}
51
52
52
53
apply plugin : " com.vanniktech.maven.publish"
You can’t perform that action at this time.
0 commit comments