From b7badb41f33c877e12f2037b1fdc0af383b5c129 Mon Sep 17 00:00:00 2001 From: 0000248716-lijiaxiao Date: Sat, 31 Jul 2021 14:56:36 +0800 Subject: [PATCH 1/2] 1.0.0 --- .../filepicker/model/DialogConfigs.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/library/src/main/java/com/developer/filepicker/model/DialogConfigs.java b/library/src/main/java/com/developer/filepicker/model/DialogConfigs.java index 7837efe..5f9f286 100644 --- a/library/src/main/java/com/developer/filepicker/model/DialogConfigs.java +++ b/library/src/main/java/com/developer/filepicker/model/DialogConfigs.java @@ -29,20 +29,4 @@ public abstract class DialogConfigs { * file_and_dir_select */ public static final int FILE_AND_DIR_SELECT = 2; - - /** - * parent_directory - */ - private static final String DIRECTORY_SEPARATOR = "/"; - - /** - * storage_dir - */ - private static final String STORAGE_DIR = "/storage/emulated/0/Android/data/com.developer.filepicker.file"; - - /** - * DEFAULT_DIR is the default mount point of the SDCARD. - * It is the default mount point. - */ - public static final String DEFAULT_DIR = DIRECTORY_SEPARATOR + STORAGE_DIR; } \ No newline at end of file -- Gitee From 12e14057951c092edd928094ef9065033119b3c7 Mon Sep 17 00:00:00 2001 From: 0000248716-lijiaxiao Date: Sat, 31 Jul 2021 15:19:48 +0800 Subject: [PATCH 2/2] 1.0.0 --- README.md | 2 +- .../file/slice/MainAbilitySlice.java | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ad3f077..e8730ef 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ ...... } ``` -在sdk6,DevEco Studio2.2 beta1下项目可直接运行 如无法运行, +在sdk6,DevEco Studio 2.2 beta1下项目可直接运行 如无法运行, 删除项目.gradle,.idea,build,gradle,build.gradle文件, 并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下 diff --git a/entry/src/main/java/com/developer/filepicker/file/slice/MainAbilitySlice.java b/entry/src/main/java/com/developer/filepicker/file/slice/MainAbilitySlice.java index be93a8a..961f26b 100644 --- a/entry/src/main/java/com/developer/filepicker/file/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/developer/filepicker/file/slice/MainAbilitySlice.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.developer.filepicker.file.slice; import com.developer.filepicker.file.FileListAdapter; @@ -30,6 +45,11 @@ import java.io.IOException; import java.io.OutputStream; import java.util.ArrayList; +/** MainAbilitySlice + * + * @author ljx + * @since 2021-07-012 + */ public class MainAbilitySlice extends AbilitySlice { private static final int CAPACITY = 1024; private static final int CONSTANT = -1; -- Gitee