Skip to content

Commit

Permalink
refactor: #23 Provide Images to other apps
Browse files Browse the repository at this point in the history
- Remove bytes
  • Loading branch information
nya-elimu committed Nov 23, 2020
1 parent ba62ee9 commit fa62a32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 4 additions & 4 deletions content-provider-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 24
targetSdkVersion 29
versionCode 1001000
versionName "1.1.0"
versionCode 1001001
versionName "1.1.1"
setProperty("archivesBaseName", "content-provider-utils-${versionName}")
}

Expand All @@ -27,7 +27,7 @@ android {
}

dependencies {
implementation 'ai.elimu:model:2.0.24'
implementation 'ai.elimu:model:2.0.26'
}

// See https://docs.gradle.org/current/dsl/org.gradle.api.publish.maven.MavenPublication.html
Expand All @@ -37,7 +37,7 @@ publishing {
utils(MavenPublication) {
groupId 'ai.elimu'
artifactId 'content-provider-utils'
version '1.1.0'
version '1.1.1'
artifact("${buildDir}/outputs/aar/content-provider-utils-${version}-release.aar")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ public static ImageGson getImageGson(Cursor cursor) {
String title = cursor.getString(columnTitle);
Log.i(CursorToImageGsonConverter.class.getName(), "title: \"" + title + "\"");

int columnBytes = cursor.getColumnIndex("bytes");
byte[] bytes = cursor.getBlob(columnBytes);
Log.i(CursorToImageGsonConverter.class.getName(), "bytes: " + bytes);
Log.i(CursorToImageGsonConverter.class.getName(), "bytes.length: " + bytes.length);

int columnImageFormat = cursor.getColumnIndex("imageFormat");
String imageFormatAsString = cursor.getString(columnImageFormat);
Log.i(CursorToImageGsonConverter.class.getName(), "imageFormatAsString: " + imageFormatAsString);
Expand All @@ -42,7 +37,6 @@ public static ImageGson getImageGson(Cursor cursor) {
image.setId(id);
image.setRevisionNumber(revisionNumber);
image.setTitle(title);
image.setBytes(bytes);
image.setImageFormat(imageFormat);

return image;
Expand Down

0 comments on commit fa62a32

Please sign in to comment.