Skip to content

Commit

Permalink
refactor: organize imports of entire repository
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxGalaxy committed Nov 23, 2024
1 parent c6c583a commit 5d715f5
Show file tree
Hide file tree
Showing 274 changed files with 1,617 additions and 1,107 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import android.content.Context;
import android.util.TypedValue;

import androidx.annotation.ColorInt;

public class ColorUtils {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@

package android.code.editor.common.utils;

import android.app.Activity;
import android.code.editor.common.interfaces.FileDeleteListener;
import java.io.File;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import android.app.Activity;
import android.code.editor.common.interfaces.FileDeleteListener;

public class FileDeleteUtils {
public static int count = 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@

package android.code.editor.common.utils;

import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.AssetManager;
import android.net.Uri;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
Expand All @@ -34,6 +29,12 @@
import java.util.Comparator;
import java.util.HashMap;

import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.AssetManager;
import android.net.Uri;

public class FileUtils {
public static void setUpFileList(
ArrayList<HashMap<String, String>> listMap, ArrayList<String> listString) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package android.code.editor.utils;

import android.app.Activity;
import java.util.HashMap;

import android.app.Activity;

public class RequestNetwork {
private HashMap<String, Object> params = new HashMap<>();
private HashMap<String, Object> headers = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
package android.code.editor.utils;

import com.google.gson.Gson;
import java.io.IOException;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.HashMap;
import java.util.concurrent.TimeUnit;

import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;

import com.google.gson.Gson;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.FormBody;
Expand Down
19 changes: 10 additions & 9 deletions app/src/main/java/com/icst/android/appstudio/MyApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@

package com.icst.android.appstudio;

import android.app.AlarmManager;
import android.app.Application;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Environment;
import android.os.Process;
import android.util.Log;
import com.downloader.PRDownloader;
import com.downloader.PRDownloaderConfig;
import com.elfilibustero.uidesigner.AppLoader;
Expand All @@ -50,6 +41,16 @@
import com.quickersilver.themeengine.ThemeEngine;
import com.quickersilver.themeengine.ThemeMode;

import android.app.AlarmManager;
import android.app.Application;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Environment;
import android.os.Process;
import android.util.Log;

public class MyApplication extends Application {
// Social links
public static final String YOUTUBE = "https://www.youtube.com/@Innovative-CST";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@

package com.icst.android.appstudio.activities;

import com.icst.android.appstudio.BuildConfig;
import com.icst.android.appstudio.MyApplication;
import com.icst.android.appstudio.R;
import com.icst.android.appstudio.databinding.ActivityAboutAppBinding;

import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.Toast;
import com.icst.android.appstudio.BuildConfig;
import com.icst.android.appstudio.MyApplication;
import com.icst.android.appstudio.R;
import com.icst.android.appstudio.databinding.ActivityAboutAppBinding;

public class AboutAppActivity extends BaseActivity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,19 @@

package com.icst.android.appstudio.activities;

import java.util.HashMap;

import com.icst.android.appstudio.R;
import com.icst.android.appstudio.databinding.ActivityAboutTeamBinding;
import com.icst.android.appstudio.utils.TeamMemberDataParser;

import android.code.editor.utils.RequestNetwork;
import android.code.editor.utils.RequestNetworkController;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.LinearLayoutManager;
import com.icst.android.appstudio.R;
import com.icst.android.appstudio.databinding.ActivityAboutTeamBinding;
import com.icst.android.appstudio.utils.TeamMemberDataParser;
import java.util.HashMap;

public class AboutTeamActivity extends BaseActivity {
private ActivityAboutTeamBinding binding;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@

package com.icst.android.appstudio.activities;

import android.os.Bundle;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import com.icst.android.appstudio.models.SettingModel;
import com.icst.android.appstudio.utils.EnvironmentUtils;
import com.icst.android.appstudio.utils.SettingUtils;

import android.os.Bundle;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;

public class BaseActivity extends AppCompatActivity {
/*
* BaseActivity contains configration for all activities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,9 @@

package com.icst.android.appstudio.activities;

import android.code.editor.common.utils.ColorUtils;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Toast;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.LinearLayoutManager;
import java.io.File;
import java.util.ArrayList;

import com.icst.android.appstudio.R;
import com.icst.android.appstudio.adapters.PaneAdapter;
import com.icst.android.appstudio.databinding.ActivityCodeEditorBinding;
Expand All @@ -53,8 +45,19 @@
import com.unnamed.b.atv.model.TreeNode;
import com.unnamed.b.atv.view.AndroidTreeView;
import com.unnamed.b.atv.view.TreeNodeWrapperView;
import java.io.File;
import java.util.ArrayList;

import android.code.editor.common.utils.ColorUtils;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Toast;

import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.LinearLayoutManager;

public class CodeEditorActivity extends BaseActivity {
public ActivityCodeEditorBinding binding;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@

package com.icst.android.appstudio.activities;

import com.icst.android.appstudio.R;
import com.icst.android.appstudio.databinding.ActivityCrashHandlerBinding;

import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.os.Bundle;
import com.icst.android.appstudio.R;
import com.icst.android.appstudio.databinding.ActivityCrashHandlerBinding;

public class CrashHandlerActivity extends BaseActivity {
private ActivityCrashHandlerBinding binding;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@

package com.icst.android.appstudio.activities;

import android.os.Build;
import android.os.Bundle;
import java.io.File;
import java.util.HashMap;

import com.icst.android.appstudio.R;
import com.icst.android.appstudio.block.model.Event;
import com.icst.android.appstudio.block.model.FileModel;
Expand All @@ -46,8 +47,9 @@
import com.icst.android.appstudio.utils.SettingUtils;
import com.icst.android.appstudio.utils.serialization.DeserializerUtils;
import com.icst.android.appstudio.utils.serialization.SerializerUtil;
import java.io.File;
import java.util.HashMap;

import android.os.Build;
import android.os.Bundle;

public class EventEditorActivity extends BaseActivity {
private ActivityEventEditorBinding binding;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,10 @@

package com.icst.android.appstudio.activities;

import android.content.Context;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;
import java.io.File;
import java.util.ArrayList;
import java.util.concurrent.Executors;

import com.icst.android.appstudio.R;
import com.icst.android.appstudio.block.model.FileModel;
import com.icst.android.appstudio.databinding.ActivityEventsBinding;
Expand All @@ -50,9 +46,15 @@
import com.icst.android.appstudio.utils.EnvironmentUtils;
import com.icst.android.appstudio.utils.EventsHolderUtils;
import com.icst.android.appstudio.utils.serialization.DeserializerUtils;
import java.io.File;
import java.util.ArrayList;
import java.util.concurrent.Executors;

import android.content.Context;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;

public class EventsActivity extends BaseActivity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

package com.icst.android.appstudio.activities;

import android.os.Bundle;
import android.widget.Toast;
import java.io.File;

import com.downloader.Error;
import com.downloader.OnDownloadListener;
import com.downloader.PRDownloader;
Expand All @@ -46,7 +46,9 @@
import com.icst.android.appstudio.models.ExtensionBundle;
import com.icst.android.appstudio.utils.EnvironmentUtils;
import com.icst.android.appstudio.utils.serialization.DeserializerUtils;
import java.io.File;

import android.os.Bundle;
import android.widget.Toast;

public class ExtensionActivity extends BaseActivity {
private ActivityExtensionBinding binding;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

package com.icst.android.appstudio.activities;

import android.os.Bundle;
import android.view.View;
import androidx.recyclerview.widget.LinearLayoutManager;
import java.io.File;
import java.util.ArrayList;

import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
Expand All @@ -46,8 +46,11 @@
import com.icst.android.appstudio.models.ExtensionBundle;
import com.icst.android.appstudio.utils.EnvironmentUtils;
import com.icst.android.appstudio.utils.serialization.DeserializerUtils;
import java.io.File;
import java.util.ArrayList;

import android.os.Bundle;
import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;

public class ExtensionsManagerActivity extends BaseActivity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,22 @@

package com.icst.android.appstudio.activities;

import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;

import com.icst.android.appstudio.adapters.FilesListAdapter;
import com.icst.android.appstudio.databinding.ActivityFileManagerBinding;

import android.code.editor.common.utils.FileUtils;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import androidx.recyclerview.widget.LinearLayoutManager;
import com.icst.android.appstudio.adapters.FilesListAdapter;
import com.icst.android.appstudio.databinding.ActivityFileManagerBinding;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;

public class FileManagerActivity extends BaseActivity {
private ActivityFileManagerBinding binding;
Expand Down
Loading

0 comments on commit 5d715f5

Please sign in to comment.