}
android {
- namespace 'com.zhixun.blesdk.app'
+ namespace 'com.zhixun.blesdk.debug_tool'
compileSdk 33
defaultConfig {
- applicationId "com.zhixun.blesdk.app"
+ applicationId "com.zhixun.blesdk.debug_tool"
minSdk 24
targetSdk 33
- versionCode 2
- versionName "1.2"
+ versionCode 3
+ versionName "1.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
android.applicationVariants.all{ variant ->
variant.outputs.all{
def createTime = new Date().format("YYYYMMddHH", TimeZone.getTimeZone("GMT+08:00"))
- def fileName = "Hs-sdk_${defaultConfig.versionName}_${buildType.name}_${createTime}.apk"
+ def fileName = "hs_debugtool_${defaultConfig.versionName}_${buildType.name}_${createTime}.apk"
outputFileName = fileName
}
}
android:usesCleartextTraffic="true"
tools:targetApi="31">
<activity
- android:name=".AiLogActivity"
+ android:name="com.zhixun.blesdk.debug_tool.AiLogActivity"
android:exported="false" />
<activity
android:name=".PicTestActivity"
android:exported="false" />
<activity
- android:name=".DialTestActivity"
+ android:name="com.zhixun.blesdk.debug_tool.DialTestActivity"
android:exported="false" />
<activity
- android:name=".TestActivity"
+ android:name="com.zhixun.blesdk.debug_tool.TestActivity"
android:exported="false" />
<activity
- android:name=".MainActivity"
+ android:name="com.zhixun.blesdk.debug_tool.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
+++ /dev/null
-package com.zhixun.blesdk.app.utils;
-
-public class test {
-
-}
-package com.zhixun.blesdk.app;
+package com.zhixun.blesdk.debug_tool;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import android.os.Bundle;
import android.view.View;
-import android.widget.ListView;
-import com.zhixun.blesdk.app.adapter.MsgAdapter;
+import com.zhixun.blesdk.debug_tool.R;
+import com.zhixun.blesdk.debug_tool.adapter.MsgAdapter;
import com.zhixun.blesdk.hssdk.data.AiManage;
import java.util.ArrayList;
-package com.zhixun.blesdk.app;
+package com.zhixun.blesdk.debug_tool;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
-import androidx.documentfile.provider.DocumentFile;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.ActivityNotFoundException;
-import android.content.ContentUris;
-import android.content.Context;
import android.content.Intent;
-import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
-import android.os.Environment;
-import android.provider.DocumentsContract;
-import android.provider.MediaStore;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
-import android.widget.ListView;
import android.widget.Toast;
-import com.zhixun.blesdk.app.adapter.MsgAdapter;
-import com.zhixun.blesdk.app.utils.FileHelper;
+import com.zhixun.blesdk.debug_tool.R;
+import com.zhixun.blesdk.debug_tool.adapter.MsgAdapter;
+import com.zhixun.blesdk.debug_tool.utils.FileHelper;
import com.zhixun.blesdk.hssdk.HsAgentSdk;
import com.zhixun.blesdk.hssdk.callback.ISendFileListener;
import com.zhixun.blesdk.hssdk.entity.file.HsMarketDialSum;
-package com.zhixun.blesdk.app;
+package com.zhixun.blesdk.debug_tool;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import android.content.Intent;
-import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Handler;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
-import android.widget.Toast;
import com.google.gson.Gson;
-import com.zhixun.blesdk.app.adapter.DeviceAdapter;
-import com.zhixun.blesdk.app.utils.ByteTools;
-import com.zhixun.blesdk.app.utils.PermissionUtil;
+import com.zhixun.blesdk.debug_tool.R;
+import com.zhixun.blesdk.debug_tool.adapter.DeviceAdapter;
+import com.zhixun.blesdk.debug_tool.utils.PermissionUtil;
import com.zhixun.blesdk.hssdk.HsAgentSdk;
import com.zhixun.blesdk.hssdk.callback.BtVtransferCallback;
import com.zhixun.blesdk.hssdk.callback.IBtScanCallback;
import com.zhixun.blesdk.hssdk.callback.OnMsgSendCallBack;
import com.zhixun.blesdk.hssdk.entity.E3MsgBody;
import com.zhixun.blesdk.hssdk.entity.HsAlarmItem;
-import com.zhixun.blesdk.hssdk.entity.HsSleepItem;
import com.zhixun.blesdk.hssdk.entity.MsgBody;
import com.zhixun.blesdk.hssdk.entity.MsgResponse;
import com.zhixun.blesdk.hssdk.entity.HsWearDevice;
-package com.zhixun.blesdk.app;
+package com.zhixun.blesdk.debug_tool;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
-import android.widget.ListView;
import android.widget.Toast;
-import com.zhixun.blesdk.app.adapter.MsgAdapter;
-import com.zhixun.blesdk.app.utils.FileHelper;
-import com.zhixun.blesdk.app.utils.FuncationChosePopupWindow;
+import com.zhixun.blesdk.debug_tool.R;
+import com.zhixun.blesdk.debug_tool.adapter.MsgAdapter;
+import com.zhixun.blesdk.debug_tool.utils.FileHelper;
+import com.zhixun.blesdk.debug_tool.utils.FuncationChosePopupWindow;
import java.io.FileNotFoundException;
import java.io.IOException;
-package com.zhixun.blesdk.app.adapter;
+package com.zhixun.blesdk.debug_tool.adapter;
import android.Manifest;
import android.content.Context;
import androidx.core.app.ActivityCompat;
-import com.zhixun.blesdk.app.R;
+import com.zhixun.blesdk.debug_tool.R;
import com.zhixun.blesdk.hssdk.entity.HsWearDevice;
import java.util.List;
-package com.zhixun.blesdk.app.adapter;
+package com.zhixun.blesdk.debug_tool.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.widget.BaseAdapter;
import android.widget.TextView;
-import com.zhixun.blesdk.app.R;
+import com.zhixun.blesdk.debug_tool.R;
import java.util.ArrayList;
-package com.zhixun.blesdk.app.adapter;
+package com.zhixun.blesdk.debug_tool.adapter;
import android.content.Context;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
-import com.zhixun.blesdk.app.R;
+import com.zhixun.blesdk.debug_tool.R;
import java.util.ArrayList;
-package com.zhixun.blesdk.app.utils;
+package com.zhixun.blesdk.debug_tool.utils;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
-package com.zhixun.blesdk.app.utils;
+package com.zhixun.blesdk.debug_tool.utils;
import android.content.ContentResolver;
import android.content.ContentUris;
-package com.zhixun.blesdk.app.utils;
+package com.zhixun.blesdk.debug_tool.utils;
import android.app.Activity;
import android.widget.PopupWindow;
import com.google.gson.Gson;
-import com.zhixun.blesdk.app.R;
-import com.zhixun.blesdk.app.adapter.FuncationAdapter;
+import com.zhixun.blesdk.debug_tool.R;
+import com.zhixun.blesdk.debug_tool.adapter.FuncationAdapter;
import com.zhixun.blesdk.hssdk.HsAgentSdk;
import com.zhixun.blesdk.hssdk.callback.IFileReceiverCallback;
import com.zhixun.blesdk.hssdk.callback.ISendFileListener;
import com.zhixun.blesdk.hssdk.entity.HsWaterRemind;
import com.zhixun.blesdk.hssdk.entity.MsgBody;
import com.zhixun.blesdk.hssdk.entity.MsgResponse;
-import com.zhixun.blesdk.hssdk.entity.file.HsCustomDialSum;
import com.zhixun.blesdk.hssdk.entity.file.HsMarketDialSum;
import java.io.File;
-package com.zhixun.blesdk.app.utils;
+package com.zhixun.blesdk.debug_tool.utils;
import static android.content.pm.PackageManager.PERMISSION_GRANTED;
--- /dev/null
+package com.zhixun.blesdk.debug_tool.utils;
+
+public class test {
+
+}
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:context=".TestActivity"
+ tools:context="com.zhixun.blesdk.debug_tool.TestActivity"
android:orientation="vertical"
android:id="@+id/parent">
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:context=".TestActivity"
+ tools:context="com.zhixun.blesdk.debug_tool.TestActivity"
android:orientation="vertical"
android:id="@+id/parent">
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:context=".MainActivity"
+ tools:context="com.zhixun.blesdk.debug_tool.MainActivity"
android:orientation="vertical"
android:background="#F6F6F6">
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:context=".TestActivity"
+ tools:context="com.zhixun.blesdk.debug_tool.TestActivity"
android:orientation="vertical"
android:id="@+id/parent">
<resources>
- <string name="app_name">HsBleSdk</string>
+ <string name="app_name">HsDebugTool</string>
</resources>
\ No newline at end of file
-package com.zhixun.blesdk.app;
+package com.zhixun.blesdk.debug_tool;
import org.junit.Test;