desc:独立串口通信代码到单独lib

master
xiaowusky 2 years ago
parent 9c88f40291
commit ff3aa8fcd1

@ -42,6 +42,7 @@ android {
dependencies {
implementation project(path: ':commonLib')
implementation project(path: ':commonSPort')
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'

@ -16,7 +16,6 @@ import com.common.commonlib.net.interceptor.CommonInterceptor;
import com.common.commonlib.net.interceptor.RequestHeadInterceptor;
import com.common.commonlib.net.interceptor.ResponseHeadInterceptor;
import com.common.commonlib.net.manager.CommonInterceptorManager;
import com.common.commonlib.serialport.SerialPortUtil;
import com.common.commonlib.utils.BaseUtils;
import com.common.commonlib.utils.FTPUtils;
import com.common.commonlib.utils.MMKVUtils;
@ -29,6 +28,7 @@ import com.common.commonlibtest.manager.InternetLoader;
import com.common.commonlibtest.manager.LoaderType;
import com.common.commonlibtest.manager.LoginLoader;
import com.common.commonlibtest.viewpagerlayoutmanager.VariousRvDemoActivity;
import com.common.serialport.SerialPortUtil;
import com.yinuo.commonlibtest.R;
import com.yinuo.commonlibtest.databinding.ActivityMainBinding;

@ -36,8 +36,6 @@ dependencies {
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
implementation 'com.aill:AndroidSerialPort:1.0.8'
implementation 'com.airbnb.android:lottie:5.0.2'
implementation(rootProject.ext.dependencies.mmkv)

@ -0,0 +1 @@
/build

@ -0,0 +1,22 @@
apply from: "${rootProject.rootDir}/buildCommon/commonLibConfig.gradle"
project.ext.setLibDefaultConfig project
android {
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'com.aill:AndroidSerialPort:1.0.8'
}

@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.common.serialport">
</manifest>

@ -1,4 +1,4 @@
package com.common.commonlib.serialport;
package com.common.serialport;
/**
* @author by AllenJ on 2018/5/3.

@ -1,4 +1,4 @@
package com.common.commonlib.serialport;
package com.common.serialport;
import java.util.ArrayList;
import java.util.List;

@ -1,4 +1,4 @@
package com.common.commonlib.serialport;
package com.common.serialport;
import android.util.Log;

@ -2,3 +2,4 @@ rootProject.name = "CommonLibTest"
include ':app'
include ':commonLib'
include ':commonbt'
include ':commonSPort'

Loading…
Cancel
Save