Skip to content

Commit 6094037

Browse files
committed
feat: Updated project structure
1 parent 52ed7b0 commit 6094037

24 files changed

+54
-54
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,38 +21,38 @@
2121
android:theme="@style/AppTheme"
2222
android:forceDarkAllowed="false">
2323
<activity
24-
android:name=".activity.MainActivity"
24+
android:name=".ui.activities.MainActivity"
2525
android:exported="true">
2626
<intent-filter>
2727
<action android:name="android.intent.action.MAIN" />
2828
<category android:name="android.intent.category.LAUNCHER" />
2929
</intent-filter>
3030
</activity>
3131
<activity
32-
android:name=".activity.DebugActivity"
32+
android:name=".ui.activities.DebugActivity"
3333
android:exported="true" />
3434
<activity
35-
android:name=".activity.FileManagerActivity"
35+
android:name=".ui.activities.FileManagerActivity"
3636
android:exported="true" />
3737
<activity
3838
android:configChanges="uiMode"
3939
android:windowSoftInputMode="adjustResize"
40-
android:name=".activity.CodeEditorActivity"
40+
android:name=".ui.activities.CodeEditorActivity"
4141
android:exported="true" />
4242
<activity
43-
android:name=".activity.ContributorsActivity"
43+
android:name=".ui.activities.ContributorsActivity"
4444
android:exported="true" />
4545
<activity
46-
android:name=".activity.SettingActivity"
46+
android:name=".ui.activities.SettingActivity"
4747
android:exported="true" />
4848
<activity
49-
android:name=".activity.MarkdownViewer"
49+
android:name=".ui.activities.MarkdownViewer"
5050
android:exported="true" />
5151
<activity
52-
android:name=".activity.LicenseActivity"
52+
android:name=".ui.activities.LicenseActivity"
5353
android:exported="true" />
5454
<activity
55-
android:name=".activity.WebViewActivity"
55+
android:name=".ui.activities.WebViewActivity"
5656
android:exported="true" />
5757
</application>
5858

app/src/main/java/android/code/editor/MyApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import android.app.AlarmManager;
2121
import android.app.Application;
2222
import android.app.PendingIntent;
23-
import android.code.editor.activity.DebugActivity;
23+
import android.code.editor.ui.activities.DebugActivity;
2424
import android.content.Context;
2525
import android.content.Intent;
2626
import android.os.Process;

app/src/main/java/android/code/editor/files/utils/FileTypeHandler.java renamed to app/src/main/java/android/code/editor/handlers/FileTypeHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
package android.code.editor.files.utils;
18+
package android.code.editor.handlers;
1919

20-
import android.code.editor.activity.CodeEditorActivity;
21-
import android.code.editor.activity.FileManagerActivity;
20+
import android.code.editor.ui.activities.CodeEditorActivity;
21+
import android.code.editor.ui.activities.FileManagerActivity;
2222
import android.content.Context;
2323
import android.content.Intent;
2424
import android.view.View;

app/src/main/java/android/code/editor/activity/BaseActivity.java renamed to app/src/main/java/android/code/editor/ui/activities/BaseActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
package android.code.editor.activity;
18+
package android.code.editor.ui.activities;
1919

20-
import android.code.editor.ui.MaterialColorHelper;
20+
import android.code.editor.utils.MaterialColorHelper;
2121
import android.code.editor.utils.Setting;
2222
import android.content.res.Configuration;
2323
import android.content.res.Resources;

app/src/main/java/android/code/editor/activity/CodeEditorActivity.java renamed to app/src/main/java/android/code/editor/ui/activities/CodeEditorActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
package android.code.editor.activity;
18+
package android.code.editor.ui.activities;
1919

2020
import android.code.editor.R;
21-
import android.code.editor.adapters.viewholders.FileTabAdapter;
22-
import android.code.editor.adapters.viewholders.FileTreeViewHolder;
2321
import android.code.editor.common.utils.FileUtils;
2422
import android.code.editor.databinding.ActivityCodeEditorBinding;
25-
import android.code.editor.files.utils.FileTypeHandler;
23+
import android.code.editor.handlers.FileTypeHandler;
24+
import android.code.editor.ui.adapters.FileTabAdapter;
25+
import android.code.editor.ui.viewholders.FileTreeViewHolder;
2626
import android.code.editor.utils.LanguageModeHandler;
2727
import android.code.editor.utils.Setting;
2828
import android.content.Context;

app/src/main/java/android/code/editor/activity/ContributorsActivity.java renamed to app/src/main/java/android/code/editor/ui/activities/ContributorsActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
package android.code.editor.activity;
18+
package android.code.editor.ui.activities;
1919

2020
import android.code.editor.R;
21-
import android.code.editor.utils.sketchware.RequestNetwork;
22-
import android.code.editor.utils.sketchware.RequestNetworkController;
21+
import android.code.editor.utils.RequestNetwork;
22+
import android.code.editor.utils.RequestNetworkController;
2323
import android.content.Intent;
2424
import android.graphics.Bitmap;
2525
import android.net.Uri;

app/src/main/java/android/code/editor/activity/DebugActivity.java renamed to app/src/main/java/android/code/editor/ui/activities/DebugActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
package android.code.editor.activity;
18+
package android.code.editor.ui.activities;
1919

2020
import android.code.editor.R;
2121
import android.content.ClipData;

app/src/main/java/android/code/editor/activity/FileManagerActivity.java renamed to app/src/main/java/android/code/editor/ui/activities/FileManagerActivity.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
package android.code.editor.activity;
18+
package android.code.editor.ui.activities;
1919

2020
import android.code.editor.R;
2121
import android.code.editor.common.utils.FileUtils;
22-
import android.code.editor.files.utils.FileIcon;
23-
import android.code.editor.files.utils.FileTypeHandler;
24-
import android.code.editor.utils.FileManagerActivity.FileCreatorDialog;
25-
import android.code.editor.utils.FileManagerActivity.FolderCreatorDialog;
26-
import android.code.editor.utils.FileManagerActivity.ProjectCreatorDialog;
22+
import android.code.editor.handlers.FileTypeHandler;
23+
import android.code.editor.ui.dialogs.FileCreatorDialog;
24+
import android.code.editor.ui.dialogs.FolderCreatorDialog;
25+
import android.code.editor.ui.dialogs.ProjectCreatorDialog;
26+
import android.code.editor.utils.FileIcon;
2727
import android.content.Intent;
2828
import android.graphics.drawable.Drawable;
2929
import android.os.Bundle;

app/src/main/java/android/code/editor/activity/LicenseActivity.java renamed to app/src/main/java/android/code/editor/ui/activities/LicenseActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
package android.code.editor.activity;
18+
package android.code.editor.ui.activities;
1919

2020
import android.code.editor.R;
2121
import android.code.editor.common.utils.FileUtils;

app/src/main/java/android/code/editor/activity/MainActivity.java renamed to app/src/main/java/android/code/editor/ui/activities/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
package android.code.editor.activity;
18+
package android.code.editor.ui.activities;
1919

2020
import android.Manifest;
2121
import android.app.Activity;

0 commit comments

Comments
 (0)