change package name

This commit is contained in:
2025-12-23 11:34:13 +08:00
parent c00251ad64
commit b9a9501e5a
30 changed files with 57 additions and 62 deletions

View File

@@ -5,7 +5,7 @@ android {
// buildToolsVersion "36.0.0"
defaultConfig {
applicationId "com.ttstd.remoteservice"
applicationId "com.ttstd.remoteclient"
minSdkVersion 24
targetSdkVersion 29

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice;
package com.ttstd.remoteclient;
import android.content.Context;
@@ -22,6 +22,6 @@ public class ExampleInstrumentedTest {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.ttstd.remoteservice", appContext.getPackageName());
assertEquals("com.ttstd.remoteclient", appContext.getPackageName());
}
}

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ttstd.remoteservice">
package="com.ttstd.remoteclient">
<!-- 网络权限 -->
<uses-permission android:name="android.permission.INTERNET" />

View File

@@ -1,21 +1,16 @@
package com.ttstd.remoteservice.activity.main;
package com.ttstd.remoteclient.activity.main;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.media.projection.MediaProjectionManager;
import android.os.Build;
import android.util.Log;
import android.view.View;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import com.ttstd.remoteservice.R;
import com.ttstd.remoteservice.base.mvvm.BaseMvvmActivity;
import com.ttstd.remoteservice.databinding.ActivityMainBinding;
import com.ttstd.remoteservice.service.ControlService;
import com.ttstd.remoteservice.service.ScreenCaptureService;
import com.ttstd.remoteclient.R;
import com.ttstd.remoteclient.base.mvvm.BaseMvvmActivity;
import com.ttstd.remoteclient.databinding.ActivityMainBinding;
import com.ttstd.remoteclient.service.ControlService;
import com.ttstd.remoteclient.service.ScreenCaptureService;
public class MainActivity extends BaseMvvmActivity<MainViewModel, ActivityMainBinding> {
private static final String TAG ="MainActivity";

View File

@@ -0,0 +1,10 @@
package com.ttstd.remoteclient.activity.main;
import com.trello.rxlifecycle4.android.ActivityEvent;
import com.ttstd.remoteclient.base.mvvm.BaseViewModel;
import com.ttstd.remoteclient.databinding.ActivityMainBinding;
public class MainViewModel extends BaseViewModel<ActivityMainBinding, ActivityEvent> {
}

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base;
package com.ttstd.remoteclient.base;
import android.content.Context;
import android.content.ContextWrapper;
@@ -7,7 +7,7 @@ import android.content.res.Resources;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import com.ttstd.remoteservice.utils.ScreenUtils;
import com.ttstd.remoteclient.utils.ScreenUtils;
public class BaseAlertDialogBuilder extends AlertDialog.Builder {

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base;
package com.ttstd.remoteclient.base;
import android.annotation.SuppressLint;
import android.app.Application;
@@ -11,8 +11,8 @@ import android.util.Log;
import com.alibaba.android.arouter.launcher.ARouter;
import com.tencent.bugly.crashreport.CrashReport;
import com.tencent.mmkv.MMKV;
import com.ttstd.remoteservice.BuildConfig;
import com.ttstd.remoteservice.utils.SystemUtils;
import com.ttstd.remoteclient.BuildConfig;
import com.ttstd.remoteclient.utils.SystemUtils;
public class BaseApplication extends Application {

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base;
package com.ttstd.remoteclient.base;
import android.os.Build;
import android.os.Bundle;
@@ -11,8 +11,8 @@ import androidx.core.view.OnApplyWindowInsetsListener;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import com.ttstd.remoteservice.R;
import com.ttstd.remoteservice.base.rx.BaseRxActivity;
import com.ttstd.remoteclient.R;
import com.ttstd.remoteclient.base.rx.BaseRxActivity;
import com.zackratos.ultimatebarx.ultimatebarx.java.UltimateBarX;
public abstract class BaseDataBindingActivity extends BaseRxActivity {

View File

@@ -1,8 +1,8 @@
package com.ttstd.remoteservice.base;
package com.ttstd.remoteclient.base;
import android.os.Bundle;
import com.ttstd.remoteservice.base.rx.BaseRxDialogFragment;
import com.ttstd.remoteclient.base.rx.BaseRxDialogFragment;
public abstract class BaseDialogFragment extends BaseRxDialogFragment {

View File

@@ -1,8 +1,8 @@
package com.ttstd.remoteservice.base;
package com.ttstd.remoteclient.base;
import android.os.Bundle;
import com.ttstd.remoteservice.base.rx.BaseRxFragment;
import com.ttstd.remoteclient.base.rx.BaseRxFragment;
public abstract class BaseFragment extends BaseRxFragment {

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base;
package com.ttstd.remoteclient.base;
import android.os.Build;
import android.os.Bundle;
@@ -11,8 +11,8 @@ import androidx.core.view.OnApplyWindowInsetsListener;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import com.ttstd.remoteservice.R;
import com.ttstd.remoteservice.base.rx.BaseRxActivity;
import com.ttstd.remoteclient.R;
import com.ttstd.remoteclient.base.rx.BaseRxActivity;
import com.zackratos.ultimatebarx.ultimatebarx.java.UltimateBarX;
public abstract class BaseTransparentActivity extends BaseRxActivity {

View File

@@ -1,11 +1,11 @@
package com.ttstd.remoteservice.base.mvp;
package com.ttstd.remoteclient.base.mvp;
import android.os.Bundle;
import androidx.annotation.CallSuper;
import androidx.annotation.Nullable;
import com.ttstd.remoteservice.base.BaseTransparentActivity;
import com.ttstd.remoteclient.base.BaseTransparentActivity;
@Deprecated
public abstract class BaseMvpActivity extends BaseTransparentActivity {

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base.mvp;
package com.ttstd.remoteclient.base.mvp;
@Deprecated
public interface BasePresenter<V extends BaseView> {

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base.mvp;
package com.ttstd.remoteclient.base.mvp;
@Deprecated
public interface BaseView {

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base.mvvm;
package com.ttstd.remoteclient.base.mvvm;
import android.os.Bundle;
import android.util.Log;
@@ -9,7 +9,7 @@ import androidx.databinding.ViewDataBinding;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;
import com.ttstd.remoteservice.base.BaseTransparentActivity;
import com.ttstd.remoteclient.base.BaseTransparentActivity;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base.mvvm;
package com.ttstd.remoteclient.base.mvvm;
import android.content.Context;

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base.mvvm.fragment;
package com.ttstd.remoteclient.base.mvvm.fragment;
import android.app.Activity;
import android.content.Context;
@@ -19,7 +19,7 @@ import androidx.databinding.ViewDataBinding;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;
import com.ttstd.remoteservice.base.BaseDialogFragment;
import com.ttstd.remoteclient.base.BaseDialogFragment;
import java.lang.ref.WeakReference;
import java.lang.reflect.ParameterizedType;

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base.mvvm.fragment;
package com.ttstd.remoteclient.base.mvvm.fragment;
import android.app.Activity;
import android.content.Context;
@@ -19,7 +19,7 @@ import androidx.databinding.ViewDataBinding;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;
import com.ttstd.remoteservice.base.BaseFragment;
import com.ttstd.remoteclient.base.BaseFragment;
import java.lang.ref.WeakReference;
import java.lang.reflect.ParameterizedType;

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base.rx;
package com.ttstd.remoteclient.base.rx;
import android.os.Bundle;

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base.rx;
package com.ttstd.remoteclient.base.rx;
import android.os.Bundle;
import android.view.View;

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base.rx;
package com.ttstd.remoteclient.base.rx;
import android.os.Bundle;
import android.view.View;

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.base.rx;
package com.ttstd.remoteclient.base.rx;
import android.app.Service;
import android.content.Intent;

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.service;
package com.ttstd.remoteclient.service;
import android.app.Service;
import android.content.Intent;

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.service;
package com.ttstd.remoteclient.service;
import android.app.Notification;
import android.app.NotificationChannel;

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.utils;
package com.ttstd.remoteclient.utils;
import android.content.Context;
import android.content.res.Configuration;

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice.utils;
package com.ttstd.remoteclient.utils;
import android.app.ActivityManager;
import android.content.Context;

View File

@@ -1,10 +0,0 @@
package com.ttstd.remoteservice.activity.main;
import com.trello.rxlifecycle4.android.ActivityEvent;
import com.ttstd.remoteservice.base.mvvm.BaseViewModel;
import com.ttstd.remoteservice.databinding.ActivityMainBinding;
public class MainViewModel extends BaseViewModel<ActivityMainBinding, ActivityEvent> {
}

View File

@@ -8,7 +8,7 @@
<variable
name="click"
type="com.ttstd.remoteservice.activity.main.MainActivity.BtnClick" />
type="com.ttstd.remoteclient.activity.main.MainActivity.BtnClick" />
</data>
<androidx.constraintlayout.widget.ConstraintLayout

View File

@@ -1,4 +1,4 @@
package com.ttstd.remoteservice;
package com.ttstd.remoteclient;
import org.junit.Test;