refactor: move namespace

This commit is contained in:
Kagura 2024-10-13 17:22:30 +08:00
parent 5139512b4c
commit f0a60b3a49
39 changed files with 137 additions and 201 deletions

View file

@ -6,13 +6,13 @@ plugins {
} }
android { android {
namespace = "com.example.myapplication" namespace = "com.dazuoye.filemanager"
compileSdk = 34 compileSdk = 34
defaultConfig { defaultConfig {
applicationId = "com.example.myapplication" applicationId = "com.dazuoye.filemanager"
minSdk = 29 minSdk = 29
targetSdk = 34 targetSdk = 35
versionCode = 1 versionCode = 1
versionName = "1.0" versionName = "1.0"

View file

@ -1,26 +0,0 @@
package com.example.myapplication;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.myapplication", appContext.getPackageName());
}
}

View file

@ -6,9 +6,6 @@
<uses-permission <uses-permission
android:name="android.permission.MANAGE_EXTERNAL_STORAGE" android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" /> tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application <application
@ -65,7 +62,7 @@
<provider <provider
android:name="androidx.core.content.FileProvider" android:name="androidx.core.content.FileProvider"
android:authorities="com.example.myapplication.provider" android:authorities="com.dazuoye.filemanager.provider"
android:exported="false" android:exported="false"
android:grantUriPermissions="true"> android:grantUriPermissions="true">
<meta-data <meta-data

View file

@ -1,4 +1,4 @@
package com.example.myapplication package com.dazuoye.filemanager
import android.content.Context import android.content.Context
import androidx.datastore.core.DataStore import androidx.datastore.core.DataStore

View file

@ -1,4 +1,4 @@
package com.example.myapplication.compose package com.dazuoye.filemanager.compose
import java.io.File import java.io.File
import java.io.FileInputStream import java.io.FileInputStream

View file

@ -1,4 +1,4 @@
package com.example.myapplication.compose package com.dazuoye.filemanager.compose
import android.Manifest.permission import android.Manifest.permission
import android.content.Context import android.content.Context
@ -28,13 +28,13 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp import androidx.compose.ui.unit.sp
import androidx.core.app.ActivityCompat import androidx.core.app.ActivityCompat
import com.example.myapplication.BuildConfig import com.dazuoye.filemanager.BuildConfig
import com.example.myapplication.R import com.dazuoye.filemanager.R
import com.example.myapplication.fileSystem.byTypeFileLister.DocumentLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.DocumentLister
import com.example.myapplication.fileSystem.byTypeFileLister.ImageLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.ImageLister
import com.example.myapplication.fileSystem.byTypeFileLister.MusicLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.MusicLister
import com.example.myapplication.fileSystem.byTypeFileLister.VideoLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.VideoLister
import com.example.myapplication.main_page import com.dazuoye.filemanager.main_page
class RequirePermissionActivity : ComponentActivity() { class RequirePermissionActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
@ -72,16 +72,6 @@ class RequirePermissionActivity : ComponentActivity() {
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
startActivity(intent) startActivity(intent)
} }
if (VERSION.SDK_INT >= VERSION_CODES.TIRAMISU) {
val perm33 = arrayOf(
permission.READ_MEDIA_AUDIO,
permission.READ_MEDIA_VIDEO,
permission.READ_MEDIA_IMAGES
)
ActivityCompat.requestPermissions(
activity, perm33, 101
)
}
} else { // for legacy system } else { // for legacy system
val permissions = val permissions =
arrayOf(permission.READ_EXTERNAL_STORAGE, permission.WRITE_EXTERNAL_STORAGE) arrayOf(permission.READ_EXTERNAL_STORAGE, permission.WRITE_EXTERNAL_STORAGE)

View file

@ -1,4 +1,4 @@
package com.example.myapplication.compose package com.dazuoye.filemanager.compose
import android.os.Bundle import android.os.Bundle
import androidx.activity.ComponentActivity import androidx.activity.ComponentActivity
@ -9,12 +9,12 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Surface import androidx.compose.material3.Surface
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Color
import com.example.myapplication.R import com.dazuoye.filemanager.R
import com.example.myapplication.compose.ui.SearchFileColumn import com.dazuoye.filemanager.compose.ui.SearchFileColumn
import com.example.myapplication.fileSystem.byTypeFileLister.DocumentLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.DocumentLister
import com.example.myapplication.fileSystem.byTypeFileLister.ImageLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.ImageLister
import com.example.myapplication.fileSystem.byTypeFileLister.MusicLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.MusicLister
import com.example.myapplication.fileSystem.byTypeFileLister.VideoLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.VideoLister
class SearchActivity : ComponentActivity() { class SearchActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {

View file

@ -1,4 +1,4 @@
package com.example.myapplication.compose package com.dazuoye.filemanager.compose
import android.content.Intent import android.content.Intent
import android.os.Build import android.os.Build
@ -32,11 +32,11 @@ import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp import androidx.compose.ui.unit.sp
import androidx.core.content.ContextCompat import androidx.core.content.ContextCompat
import com.example.myapplication.R import com.dazuoye.filemanager.R
import com.example.myapplication.SettingStorage import com.dazuoye.filemanager.SettingStorage
import com.example.myapplication.compose.ui.Setting import com.dazuoye.filemanager.compose.ui.Setting
import com.example.myapplication.main_page import com.dazuoye.filemanager.main_page
import com.example.myapplication.utils.Sysinfo import com.dazuoye.filemanager.utils.Sysinfo
class SettingActivity : ComponentActivity() { class SettingActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {

View file

@ -1,4 +1,4 @@
package com.example.myapplication.compose package com.dazuoye.filemanager.compose
import android.os.Bundle import android.os.Bundle
import android.os.Environment import android.os.Environment
@ -10,8 +10,8 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Surface import androidx.compose.material3.Surface
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Color
import com.example.myapplication.R import com.dazuoye.filemanager.R
import com.example.myapplication.compose.ui.FileColumn import com.dazuoye.filemanager.compose.ui.FileColumn
import java.io.File import java.io.File
class ViewFileActivity : ComponentActivity() { class ViewFileActivity : ComponentActivity() {

View file

@ -1,4 +1,4 @@
package com.example.myapplication.compose.ui package com.dazuoye.filemanager.compose.ui
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.ClipData import android.content.ClipData
@ -55,15 +55,15 @@ import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp import androidx.compose.ui.unit.sp
import androidx.core.content.FileProvider import androidx.core.content.FileProvider
import com.example.myapplication.R import com.dazuoye.filemanager.R
import com.example.myapplication.SettingStorage import com.dazuoye.filemanager.SettingStorage
import com.example.myapplication.compose.PasteHelper import com.dazuoye.filemanager.compose.PasteHelper
import com.example.myapplication.fileSystem.CutHelper import com.dazuoye.filemanager.fileSystem.CutHelper
import com.example.myapplication.fileSystem.WrappedFile import com.dazuoye.filemanager.fileSystem.WrappedFile
import com.example.myapplication.fileSystem.WrappedFile.Type import com.dazuoye.filemanager.fileSystem.WrappedFile.Type
import com.example.myapplication.main_page import com.dazuoye.filemanager.main_page
import com.example.myapplication.utils.AlertHelper import com.dazuoye.filemanager.utils.AlertHelper
import com.example.myapplication.utils.ClipHelper import com.dazuoye.filemanager.utils.ClipHelper
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch

View file

@ -1,4 +1,4 @@
package com.example.myapplication.compose.ui package com.dazuoye.filemanager.compose.ui
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
@ -31,12 +31,9 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.RectangleShape import androidx.compose.ui.graphics.RectangleShape
import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.res.vectorResource import androidx.compose.ui.res.vectorResource
import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.text.style.TextOverflow
@ -44,14 +41,12 @@ import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp import androidx.compose.ui.unit.sp
import androidx.core.content.FileProvider import androidx.core.content.FileProvider
import com.example.myapplication.R import com.dazuoye.filemanager.R
import com.example.myapplication.fileSystem.CutHelper import com.dazuoye.filemanager.fileSystem.WrappedFile
import com.example.myapplication.fileSystem.WrappedFile import com.dazuoye.filemanager.fileSystem.WrappedFile.Type
import com.example.myapplication.fileSystem.WrappedFile.Type import com.dazuoye.filemanager.fileSystem.searchFile
import com.example.myapplication.fileSystem.searchFile import com.dazuoye.filemanager.main_page
import com.example.myapplication.main_page import com.dazuoye.filemanager.utils.AlertHelper
import com.example.myapplication.utils.AlertHelper
import com.example.myapplication.utils.ClipHelper
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
@ -274,7 +269,6 @@ class SearchFileColumn(
items(fileList) { file -> items(fileList) { file ->
FileSingleView( FileSingleView(
file, file,
update = update,
onItemClick = onItemClick onItemClick = onItemClick
) )
} }
@ -284,7 +278,6 @@ class SearchFileColumn(
@Composable @Composable
private fun FileSingleView( private fun FileSingleView(
file: WrappedFile, file: WrappedFile,
update: (() -> Unit)? = null,
onItemClick: ((String) -> Unit)? = null onItemClick: ((String) -> Unit)? = null
) { ) {

View file

@ -1,4 +1,4 @@
package com.example.myapplication.compose.ui package com.dazuoye.filemanager.compose.ui
import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Row

View file

@ -1,4 +1,4 @@
package com.example.myapplication package com.dazuoye.filemanager
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.ActivityNotFoundException import android.content.ActivityNotFoundException
@ -19,14 +19,14 @@ import androidx.core.content.FileProvider
import androidx.core.view.ViewCompat import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat import androidx.core.view.WindowInsetsCompat
import androidx.core.view.WindowInsetsCompat.Type import androidx.core.view.WindowInsetsCompat.Type
import com.example.myapplication.fileSystem.adapters.DocumentAdapter import com.dazuoye.filemanager.fileSystem.adapters.DocumentAdapter
import com.example.myapplication.fileSystem.adapters.DocumentModel import com.dazuoye.filemanager.fileSystem.adapters.DocumentModel
import com.example.myapplication.compose.SearchActivity import com.dazuoye.filemanager.compose.SearchActivity
import com.example.myapplication.fileSystem.CutHelper import com.dazuoye.filemanager.fileSystem.CutHelper
import com.example.myapplication.fileSystem.byTypeFileLister.DocumentLister.Companion.instance import com.dazuoye.filemanager.fileSystem.byTypeFileLister.DocumentLister.Companion.instance
import com.example.myapplication.fileSystem.byTypeFileLister.DocumentLister.Companion.regex import com.dazuoye.filemanager.fileSystem.byTypeFileLister.DocumentLister.Companion.regex
import com.example.myapplication.utils.AlertHelper import com.dazuoye.filemanager.utils.AlertHelper
import com.example.myapplication.utils.ClipHelper import com.dazuoye.filemanager.utils.ClipHelper
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch

View file

@ -1,9 +1,9 @@
package com.example.myapplication.fileSystem package com.dazuoye.filemanager.fileSystem
import android.content.Context import android.content.Context
import android.os.Environment import android.os.Environment
import com.example.myapplication.compose.PasteHelper import com.dazuoye.filemanager.compose.PasteHelper
import com.example.myapplication.utils.ClipHelper import com.dazuoye.filemanager.utils.ClipHelper
import java.io.File import java.io.File
class DeleteHelper { class DeleteHelper {

View file

@ -1,6 +1,5 @@
package com.example.myapplication.fileSystem package com.dazuoye.filemanager.fileSystem
import android.content.Context
import android.os.Environment import android.os.Environment
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers

View file

@ -1,4 +1,4 @@
package com.example.myapplication.fileSystem package com.dazuoye.filemanager.fileSystem
import android.app.usage.StorageStatsManager import android.app.usage.StorageStatsManager
import android.content.Context import android.content.Context

View file

@ -1,12 +1,12 @@
package com.example.myapplication.fileSystem package com.dazuoye.filemanager.fileSystem
import android.content.Context import android.content.Context
import android.icu.text.DecimalFormat import android.icu.text.DecimalFormat
import android.text.format.DateFormat import android.text.format.DateFormat
import com.example.myapplication.fileSystem.byTypeFileLister.DocumentLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.DocumentLister
import com.example.myapplication.fileSystem.byTypeFileLister.ImageLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.ImageLister
import com.example.myapplication.fileSystem.byTypeFileLister.MusicLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.MusicLister
import com.example.myapplication.fileSystem.byTypeFileLister.VideoLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.VideoLister
import java.io.File import java.io.File
import java.net.URLConnection import java.net.URLConnection
import java.nio.file.Files import java.nio.file.Files

View file

@ -1,4 +1,4 @@
package com.example.myapplication.fileSystem.adapters package com.dazuoye.filemanager.fileSystem.adapters
import android.content.Context import android.content.Context
import android.view.LayoutInflater import android.view.LayoutInflater
@ -6,8 +6,8 @@ import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import android.widget.ArrayAdapter import android.widget.ArrayAdapter
import android.widget.TextView import android.widget.TextView
import com.example.myapplication.R import com.dazuoye.filemanager.R
import com.example.myapplication.SettingStorage import com.dazuoye.filemanager.SettingStorage
import java.io.File import java.io.File
class DocumentModel(document: File) { class DocumentModel(document: File) {

View file

@ -1,4 +1,4 @@
package com.example.myapplication.fileSystem.adapters package com.dazuoye.filemanager.fileSystem.adapters
import android.content.Context import android.content.Context
import android.graphics.Bitmap import android.graphics.Bitmap
@ -12,8 +12,8 @@ import android.widget.ArrayAdapter
import android.widget.GridView import android.widget.GridView
import android.widget.ImageView import android.widget.ImageView
import android.widget.TextView import android.widget.TextView
import com.example.myapplication.R import com.dazuoye.filemanager.R
import com.example.myapplication.SettingStorage import com.dazuoye.filemanager.SettingStorage
import java.io.File import java.io.File
class ImageModel(image: File) { class ImageModel(image: File) {

View file

@ -1,4 +1,4 @@
package com.example.myapplication.fileSystem.adapters package com.dazuoye.filemanager.fileSystem.adapters
import android.content.Context import android.content.Context
import android.view.LayoutInflater import android.view.LayoutInflater
@ -6,8 +6,8 @@ import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import android.widget.ArrayAdapter import android.widget.ArrayAdapter
import android.widget.TextView import android.widget.TextView
import com.example.myapplication.R import com.dazuoye.filemanager.R
import com.example.myapplication.SettingStorage import com.dazuoye.filemanager.SettingStorage
import java.io.File import java.io.File
class MusicModel(music: File) { class MusicModel(music: File) {

View file

@ -1,4 +1,4 @@
package com.example.myapplication.fileSystem.adapters package com.dazuoye.filemanager.fileSystem.adapters
import android.content.Context import android.content.Context
import android.graphics.Bitmap import android.graphics.Bitmap
@ -12,8 +12,8 @@ import android.widget.ArrayAdapter
import android.widget.GridView import android.widget.GridView
import android.widget.ImageView import android.widget.ImageView
import android.widget.TextView import android.widget.TextView
import com.example.myapplication.R import com.dazuoye.filemanager.R
import com.example.myapplication.SettingStorage import com.dazuoye.filemanager.SettingStorage
import java.io.File import java.io.File
class VideoModel(video: File) { class VideoModel(video: File) {

View file

@ -1,7 +1,7 @@
package com.example.myapplication.fileSystem.byTypeFileLister package com.dazuoye.filemanager.fileSystem.byTypeFileLister
import android.os.Environment import android.os.Environment
import com.example.myapplication.fileSystem.WrappedFile import com.dazuoye.filemanager.fileSystem.WrappedFile
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch

View file

@ -1,7 +1,7 @@
package com.example.myapplication.fileSystem.byTypeFileLister package com.dazuoye.filemanager.fileSystem.byTypeFileLister
import android.os.Environment import android.os.Environment
import com.example.myapplication.fileSystem.WrappedFile import com.dazuoye.filemanager.fileSystem.WrappedFile
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch

View file

@ -1,4 +1,4 @@
package com.example.myapplication.fileSystem.byTypeFileLister package com.dazuoye.filemanager.fileSystem.byTypeFileLister
import java.io.File import java.io.File

View file

@ -1,7 +1,7 @@
package com.example.myapplication.fileSystem.byTypeFileLister package com.dazuoye.filemanager.fileSystem.byTypeFileLister
import android.os.Environment import android.os.Environment
import com.example.myapplication.fileSystem.WrappedFile import com.dazuoye.filemanager.fileSystem.WrappedFile
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch

View file

@ -1,7 +1,7 @@
package com.example.myapplication.fileSystem.byTypeFileLister package com.dazuoye.filemanager.fileSystem.byTypeFileLister
import android.os.Environment import android.os.Environment
import com.example.myapplication.fileSystem.WrappedFile import com.dazuoye.filemanager.fileSystem.WrappedFile
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch

View file

@ -1,4 +1,4 @@
package com.example.myapplication.fileSystem package com.dazuoye.filemanager.fileSystem
import java.io.File import java.io.File
@ -13,7 +13,7 @@ fun getFolderSize(folder: File, level: Int = 0): Long {
var size = 0L var size = 0L
val file = folder.listFiles() folder.listFiles()
folder.listFiles()?.forEach { content -> folder.listFiles()?.forEach { content ->
size += if (content.isFile) { size += if (content.isFile) {
content.length() content.length()

View file

@ -1,4 +1,4 @@
package com.example.myapplication; package com.dazuoye.filemanager;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
@ -11,10 +11,10 @@ import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat; import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat; import androidx.core.view.WindowInsetsCompat;
import com.example.myapplication.compose.SearchActivity; import com.dazuoye.filemanager.compose.SearchActivity;
import com.example.myapplication.compose.SettingActivity; import com.dazuoye.filemanager.compose.SettingActivity;
import com.example.myapplication.compose.ViewFileActivity; import com.dazuoye.filemanager.compose.ViewFileActivity;
import com.example.myapplication.fileSystem.DeleteHelper; import com.dazuoye.filemanager.fileSystem.DeleteHelper;
import java.io.File; import java.io.File;
public class main_page extends AppCompatActivity { public class main_page extends AppCompatActivity {

View file

@ -1,4 +1,4 @@
package com.example.myapplication package com.dazuoye.filemanager
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.DialogInterface import android.content.DialogInterface
@ -18,14 +18,14 @@ import androidx.core.content.FileProvider
import androidx.core.view.ViewCompat import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat import androidx.core.view.WindowInsetsCompat
import androidx.core.view.WindowInsetsCompat.Type import androidx.core.view.WindowInsetsCompat.Type
import com.example.myapplication.fileSystem.adapters.MusicAdapter import com.dazuoye.filemanager.fileSystem.adapters.MusicAdapter
import com.example.myapplication.fileSystem.adapters.MusicModel import com.dazuoye.filemanager.fileSystem.adapters.MusicModel
import com.example.myapplication.compose.SearchActivity import com.dazuoye.filemanager.compose.SearchActivity
import com.example.myapplication.fileSystem.CutHelper import com.dazuoye.filemanager.fileSystem.CutHelper
import com.example.myapplication.fileSystem.byTypeFileLister.DocumentLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.DocumentLister
import com.example.myapplication.fileSystem.byTypeFileLister.MusicLister.Companion.instance import com.dazuoye.filemanager.fileSystem.byTypeFileLister.MusicLister.Companion.instance
import com.example.myapplication.utils.AlertHelper import com.dazuoye.filemanager.utils.AlertHelper
import com.example.myapplication.utils.ClipHelper import com.dazuoye.filemanager.utils.ClipHelper
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch

View file

@ -1,4 +1,4 @@
package com.example.myapplication package com.dazuoye.filemanager
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.DialogInterface import android.content.DialogInterface
@ -18,14 +18,14 @@ import androidx.core.content.FileProvider
import androidx.core.view.ViewCompat import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat import androidx.core.view.WindowInsetsCompat
import androidx.core.view.WindowInsetsCompat.Type import androidx.core.view.WindowInsetsCompat.Type
import com.example.myapplication.fileSystem.adapters.ImageAdapter import com.dazuoye.filemanager.fileSystem.adapters.ImageAdapter
import com.example.myapplication.fileSystem.adapters.ImageModel import com.dazuoye.filemanager.fileSystem.adapters.ImageModel
import com.example.myapplication.compose.SearchActivity import com.dazuoye.filemanager.compose.SearchActivity
import com.example.myapplication.fileSystem.CutHelper import com.dazuoye.filemanager.fileSystem.CutHelper
import com.example.myapplication.fileSystem.byTypeFileLister.DocumentLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.DocumentLister
import com.example.myapplication.fileSystem.byTypeFileLister.ImageLister.Companion.instance import com.dazuoye.filemanager.fileSystem.byTypeFileLister.ImageLister.Companion.instance
import com.example.myapplication.utils.AlertHelper import com.dazuoye.filemanager.utils.AlertHelper
import com.example.myapplication.utils.ClipHelper import com.dazuoye.filemanager.utils.ClipHelper
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch

View file

@ -1,4 +1,4 @@
package com.example.myapplication package com.dazuoye.filemanager
import android.content.Intent import android.content.Intent
import android.os.Bundle import android.os.Bundle
@ -8,12 +8,12 @@ import android.widget.ProgressBar
import android.widget.TextView import android.widget.TextView
import androidx.activity.enableEdgeToEdge import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.app.AppCompatActivity
import com.example.myapplication.fileSystem.SystemStorageInfo import com.dazuoye.filemanager.fileSystem.SystemStorageInfo
import com.example.myapplication.fileSystem.WrappedFile import com.dazuoye.filemanager.fileSystem.WrappedFile
import com.example.myapplication.fileSystem.byTypeFileLister.DocumentLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.DocumentLister
import com.example.myapplication.fileSystem.byTypeFileLister.ImageLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.ImageLister
import com.example.myapplication.fileSystem.byTypeFileLister.MusicLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.MusicLister
import com.example.myapplication.fileSystem.byTypeFileLister.VideoLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.VideoLister
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch

View file

@ -1,11 +1,11 @@
package com.example.myapplication.utils package com.dazuoye.filemanager.utils
import android.content.Context import android.content.Context
import android.content.DialogInterface import android.content.DialogInterface
import androidx.appcompat.app.AlertDialog.Builder import androidx.appcompat.app.AlertDialog.Builder
import com.example.myapplication.R import com.dazuoye.filemanager.R
import com.example.myapplication.fileSystem.DeleteHelper import com.dazuoye.filemanager.fileSystem.DeleteHelper
import com.example.myapplication.fileSystem.WrappedFile import com.dazuoye.filemanager.fileSystem.WrappedFile
import java.io.File import java.io.File
class AlertHelper { class AlertHelper {

View file

@ -1,4 +1,4 @@
package com.example.myapplication.utils package com.dazuoye.filemanager.utils
import android.content.ClipData import android.content.ClipData
import android.content.ClipboardManager import android.content.ClipboardManager
@ -6,7 +6,7 @@ import android.content.ContentResolver
import android.content.Context import android.content.Context
import android.net.Uri import android.net.Uri
import androidx.core.content.FileProvider import androidx.core.content.FileProvider
import com.example.myapplication.BuildConfig import com.dazuoye.filemanager.BuildConfig
import kotlinx.coroutines.InternalCoroutinesApi import kotlinx.coroutines.InternalCoroutinesApi
import kotlinx.coroutines.internal.synchronized import kotlinx.coroutines.internal.synchronized
import java.io.File import java.io.File

View file

@ -1,4 +1,4 @@
package com.example.myapplication.utils; package com.dazuoye.filemanager.utils;
public class Sysinfo { public class Sysinfo {
static { static {

View file

@ -1,4 +1,4 @@
package com.example.myapplication package com.dazuoye.filemanager
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.DialogInterface import android.content.DialogInterface
@ -18,14 +18,14 @@ import androidx.core.content.FileProvider
import androidx.core.view.ViewCompat import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat import androidx.core.view.WindowInsetsCompat
import androidx.core.view.WindowInsetsCompat.Type import androidx.core.view.WindowInsetsCompat.Type
import com.example.myapplication.fileSystem.adapters.VideoAdapter import com.dazuoye.filemanager.fileSystem.adapters.VideoAdapter
import com.example.myapplication.fileSystem.adapters.VideoModel import com.dazuoye.filemanager.fileSystem.adapters.VideoModel
import com.example.myapplication.compose.SearchActivity import com.dazuoye.filemanager.compose.SearchActivity
import com.example.myapplication.fileSystem.CutHelper import com.dazuoye.filemanager.fileSystem.CutHelper
import com.example.myapplication.fileSystem.byTypeFileLister.DocumentLister import com.dazuoye.filemanager.fileSystem.byTypeFileLister.DocumentLister
import com.example.myapplication.fileSystem.byTypeFileLister.VideoLister.Companion.instance import com.dazuoye.filemanager.fileSystem.byTypeFileLister.VideoLister.Companion.instance
import com.example.myapplication.utils.AlertHelper import com.dazuoye.filemanager.utils.AlertHelper
import com.example.myapplication.utils.ClipHelper import com.dazuoye.filemanager.utils.ClipHelper
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch

View file

@ -28,7 +28,7 @@ fn get_sys() -> String {
} }
#[no_mangle] #[no_mangle]
pub extern "system" fn Java_com_example_myapplication_utils_Sysinfo_getSystemNative<'local>( pub extern "system" fn Java_com_dazuoye_filemanager_utils_Sysinfo_getSystemNative<'local>(
env: JNIEnv<'local>, env: JNIEnv<'local>,
_: JClass<'local>, _: JClass<'local>,
) -> jstring { ) -> jstring {

View file

@ -1,17 +0,0 @@
package com.example.myapplication;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}