Revert "Initial archive export stub"

This reverts commit ce8da252c3.
This commit is contained in:
tarsin committed 2022-07-07 10:30:25 +08:00
1 parent 6d0b55ac26
commit 2c3bafdac3
6 files changed
-68

No files matched your search

@@ -120,18 +120,4 @@ public class UriArchiveAccessor implements Closeable {
}
}
}
private static native boolean compressDirToOutStream(String dirname, int format, OutputStream os);
public static synchronized boolean exportGalleryArchive(String dirName, int format, Uri target, Context context) {
try {
OutputStream os = context.getContentResolver().openOutputStream(target);
compressDirToOutStream(dirName, format, os);
os.close();
} catch (IOException e) {
e.printStackTrace();
return false;
}
return true;
}
}
-6
View File
@@ -183,10 +183,4 @@ Java_com_hippo_UriArchiveAccessor_extracttoOutputStream(JNIEnv *env, jobject thi
archive_read_close(arc->archive);
archive_destroy_inst(arc);
return 0;
}
JNIEXPORT jboolean JNICALL
Java_com_hippo_UriArchiveAccessor_compressDirToOutStream(JNIEnv *env, jclass clazz, jstring dirname,
jint format, jobject os) {
return JNI_FALSE;
}