version:1.4
update:2021-10-21 10:14:40 fix: add:增加浏览器桌面检测升级,修复重复请求
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
def appName() {
|
||||
return "DeviceInfo"
|
||||
return "AoleyunDeviceInfo"
|
||||
}
|
||||
|
||||
def releaseTime() {
|
||||
@@ -9,13 +9,35 @@ def releaseTime() {
|
||||
}
|
||||
|
||||
android {
|
||||
gradle.projectsEvaluated {
|
||||
tasks.withType(JavaCompile) {
|
||||
Set<File> fileSet = options.bootstrapClasspath.getFiles()
|
||||
List<File> newFileList = new ArrayList<>();
|
||||
//JAVA语法,可连续调用,输入参数建议为相对路径
|
||||
newFileList.add(new File("libs/framework.jar"))
|
||||
//最后将原始参数添加
|
||||
newFileList.addAll(fileSet)
|
||||
options.bootstrapClasspath = files(
|
||||
newFileList.toArray()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
compileSdkVersion 29
|
||||
buildToolsVersion "30.0.3"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.aoleyun.sn"
|
||||
minSdkVersion 24
|
||||
minSdkVersion 26
|
||||
targetSdkVersion 29
|
||||
multiDexEnabled true
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
ndk {
|
||||
//选择要添加的对应 cpu 类型的 .so 库。
|
||||
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86'
|
||||
// 还可以添加 'armeabi' , 'x86', 'x86_64', 'mips', 'mips64'
|
||||
}
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
@@ -36,8 +58,8 @@ android {
|
||||
//新平台正式
|
||||
newly {
|
||||
flavorDimensions "default"
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
versionCode 5
|
||||
versionName "1.4"
|
||||
/*********************************极光推送************************************/
|
||||
manifestPlaceholders = [
|
||||
JPUSH_PKGNAME: "com.aoleyun.sn",
|
||||
@@ -259,7 +281,7 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||
compileOnly files('src/main/libs/classes.jar')
|
||||
compileOnly files('libs/framework.jar')
|
||||
|
||||
implementation 'androidx.appcompat:appcompat:1.3.1'
|
||||
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
||||
@@ -292,6 +314,9 @@ dependencies {
|
||||
//Google
|
||||
implementation 'com.google.code.gson:gson:2.8.7'
|
||||
implementation 'com.google.zxing:core:3.3.0'
|
||||
//图片加载框架
|
||||
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
||||
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
|
||||
//fastjson
|
||||
implementation 'com.alibaba:fastjson:1.2.76'
|
||||
//极光推送
|
||||
@@ -337,6 +362,7 @@ dependencies {
|
||||
preBuild {
|
||||
doLast {
|
||||
def imlFile = file(project.name + ".iml")
|
||||
// def imlFile = file("..\\.idea\\modules\\" + project.name + "\\" + rootProject.name + "." + project.name + ".iml")
|
||||
println 'Change ' + project.name + '.iml order'
|
||||
try {
|
||||
def parsedXml = (new XmlParser()).parse(imlFile)
|
||||
@@ -353,5 +379,7 @@ preBuild {
|
||||
}
|
||||
//https://www.pianshen.com/article/93481144911/
|
||||
//https://blog.csdn.net/dhl_1986/article/details/102856026
|
||||
//https://blog.csdn.net/zhonghe1114/article/details/80923730
|
||||
//https://blog.csdn.net/u014175785/article/details/116235760
|
||||
//使用系统编译后的framework.jar
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user