From 865d8b994c90ad0c525a75dce280ad91fafc82be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 21 Dec 2023 14:49:36 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=8D=E3=83=BC=E3=83=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{RepoFileManager.java => FileManager.java} | 4 +--- ...oFileManagerImpl.java => FileManagerImpl.java} | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) rename source/src/main/java/one/nem/lacerta/source/file/{RepoFileManager.java => FileManager.java} (71%) rename source/src/main/java/one/nem/lacerta/source/file/impl/{RepoFileManagerImpl.java => FileManagerImpl.java} (56%) diff --git a/source/src/main/java/one/nem/lacerta/source/file/RepoFileManager.java b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java similarity index 71% rename from source/src/main/java/one/nem/lacerta/source/file/RepoFileManager.java rename to source/src/main/java/one/nem/lacerta/source/file/FileManager.java index 61efacde..cd22a139 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/RepoFileManager.java +++ b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java @@ -2,9 +2,7 @@ package one.nem.lacerta.source.file; import android.graphics.Bitmap; -import org.eclipse.jgit.lib.Repository; - -public interface RepoFileManager { +public interface FileManager { void initRepoDir(); void addImageByIndex(Bitmap bitmap, int index); diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/RepoFileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java similarity index 56% rename from source/src/main/java/one/nem/lacerta/source/file/impl/RepoFileManagerImpl.java rename to source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index 8652cc9d..bf851fd4 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/RepoFileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -1,9 +1,15 @@ package one.nem.lacerta.source.file.impl; import android.graphics.Bitmap; -import one.nem.lacerta.source.file.RepoFileManager; -public class RepoFileManagerImpl implements RepoFileManager{ +import java.nio.file.Path; + +import one.nem.lacerta.source.file.FileManager; + +public class FileManagerImpl implements FileManager { + + private Path rootDir; + @Override public void initRepoDir() { @@ -18,4 +24,9 @@ public class RepoFileManagerImpl implements RepoFileManager{ public void deleteImageByIndex(int index) { } + + // Internal + private void createDir() { + + } }