Skip to content

Commit

Permalink
Create module for AshmemMemory
Browse files Browse the repository at this point in the history
Summary: Create module for new AshmemMemory type.

Reviewed By: oprisnik, defHLT

Differential Revision: D17162148

fbshipit-source-id: 8fad888f234d3348fc45760cb13cd0298b1791ac
  • Loading branch information
Jędrzej Kula authored and facebook-github-bot committed Sep 18, 2019
1 parent feffe23 commit 5dc3418
Show file tree
Hide file tree
Showing 16 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions animated-base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies {
api project(':fbcore')
api project(':imagepipeline-base')
api project(':imagepipeline')
api project(':memory-types:ashmem')
api project(':memory-types:nativememory')
api project(':memory-types:simple')
api project(':animated-drawable')
Expand Down
1 change: 1 addition & 0 deletions animated-drawable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ dependencies {
testImplementation project(':imagepipeline-test')

implementation project(':imagepipeline')
implementation project(':memory-types:ashmem')
implementation project(':memory-types:nativememory')
implementation project(':memory-types:simple')
implementation project(':drawee')
Expand Down
1 change: 1 addition & 0 deletions drawee-backends/drawee-pipeline/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies {
api project(':fbcore')
api project(':drawee')
api project(':imagepipeline')
api project(':memory-types:ashmem')
api project(':memory-types:nativememory')
api project(':memory-types:simple')
api project(':native-filters')
Expand Down
1 change: 1 addition & 0 deletions drawee/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies {

implementation project(':fbcore')
implementation project(':imagepipeline')
implementation project(':memory-types:ashmem')
implementation project(':memory-types:nativememory')
implementation project(':memory-types:simple')

Expand Down
1 change: 1 addition & 0 deletions imagepipeline-backends/imagepipeline-okhttp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies {

implementation project(':fbcore')
implementation project(':imagepipeline')
implementation project(':memory-types:ashmem')
implementation project(':memory-types:nativememory')
implementation project(':memory-types:simple')
}
Expand Down
1 change: 1 addition & 0 deletions imagepipeline-backends/imagepipeline-okhttp3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies {

implementation project(':fbcore')
implementation project(':imagepipeline')
implementation project(':memory-types:ashmem')
implementation project(':memory-types:nativememory')
implementation project(':memory-types:simple')
}
Expand Down
1 change: 1 addition & 0 deletions imagepipeline-backends/imagepipeline-volley/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies {

implementation project(':fbcore')
implementation project(':imagepipeline')
implementation project(':memory-types:ashmem')
implementation project(':memory-types:nativememory')
implementation project(':memory-types:simple')
implementation project(':imagepipeline-base')
Expand Down
47 changes: 47 additions & 0 deletions memory-types/ashmem/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apply plugin: 'com.android.library'
apply plugin: 'maven'

project.group = GROUP
version = VERSION_NAME

dependencies {
compileOnly "com.google.code.findbugs:jsr305:${JSR_305_VERSION}"

implementation project(':fbcore')
implementation project(':imagepipeline')

testImplementation "junit:junit:${JUNIT_VERSION}"
testImplementation "org.assertj:assertj-core:${versions.assertjCore}"
testImplementation "org.mockito:mockito-core:${MOCKITO_CORE_VERSION}"
testImplementation("org.robolectric:robolectric:${ROBOLECTRIC_VERSION}") {
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
testImplementation project(':imagepipeline-test')
}

android {
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdkVersion rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
}

lintOptions {
abortOnError false
}
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task testJar(type: Jar) {
from android.sourceSets.test.java.srcDirs
classifier = 'sources'
}

artifacts.add('archives', sourcesJar)
6 changes: 6 additions & 0 deletions memory-types/ashmem/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.facebook.fresco.memorytypes.ashmem"
>
</manifest>
1 change: 1 addition & 0 deletions native-filters/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies {
compileOnly "javax.annotation:javax.annotation-api:${ANNOTATION_API_VERSION}"

implementation project(':imagepipeline')
implementation project(':memory-types:ashmem')
implementation project(':memory-types:nativememory')
implementation project(':memory-types:simple')

Expand Down
1 change: 1 addition & 0 deletions samples/comparison/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies {
implementation project(':drawee-backends:drawee-volley')
implementation project(':fbcore')
implementation project(':imagepipeline')
implementation project(':memory-types:ashmem')
implementation project(':memory-types:nativememory')
implementation project(':memory-types:simple')
implementation project(':imagepipeline-backends:imagepipeline-okhttp3')
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ include ':imagepipeline-backends:imagepipeline-volley'
include ':imagepipeline-base'
include ':imagepipeline-base-test'
include ':imagepipeline-test'
include ':memory-types:ashmem'
include ':memory-types:nativememory'
include ':memory-types:simple'
include ':native-filters'
Expand Down
1 change: 1 addition & 0 deletions tools/flipper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies {

implementation project(':drawee-backends:drawee-pipeline')
implementation project(':imagepipeline')
implementation project(':memory-types:ashmem')
implementation project(':memory-types:nativememory')
implementation project(':memory-types:simple')
}
Expand Down
1 change: 1 addition & 0 deletions tools/stetho/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies {
implementation project(':drawee-backends:drawee-pipeline')
implementation project(':fbcore')
implementation project(':imagepipeline')
implementation project(':memory-types:ashmem')
implementation project(':memory-types:nativememory')
implementation project(':memory-types:simple')
implementation project(':imagepipeline-base')
Expand Down
1 change: 1 addition & 0 deletions vito/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies {
implementation project(':drawee-backends:drawee-pipeline')
implementation project(':fbcore')
implementation project(':imagepipeline')
implementation project(':memory-types:ashmem')
implementation project(':memory-types:nativememory')
implementation project(':memory-types:simple')
implementation project(':vito:options')
Expand Down
1 change: 1 addition & 0 deletions vito/options/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies {
implementation project(':drawee')
implementation project(':fbcore')
implementation project(':imagepipeline')
implementation project(':memory-types:ashmem')
implementation project(':memory-types:nativememory')
implementation project(':memory-types:simple')

Expand Down

0 comments on commit 5dc3418

Please sign in to comment.