1 Star 0 Fork 5

JamesLiPython/JsDroid3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 2.89 KB
一键复制 编辑 原始数据 按行查看 历史
apply plugin: 'com.android.application'
apply plugin: 'androidx.navigation.safeargs'
apply plugin: 'com.getkeepsafe.dexcount'
android {
compileSdkVersion 28
defaultConfig {
//如果编译template文件,需要修改包名
if (BUILD_TEMPLATE) {
applicationId "com.jsdroid.test"
} else {
applicationId "com.jsdroid.app"
}
minSdkVersion 19
targetSdkVersion 28
versionCode JSDROID_VERSION_CODE
versionName JSDROID_VERSION
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
ndk {
//选择要添加的对应cpu类型的.so库。 // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
abiFilters 'armeabi-v7a', 'x86'//'armeabi' ,'armeabi-v7a', 'arm64-v8a'
}
vectorDrawables.useSupportLibrary = true
println "output:"
println buildOutputs.size()
buildOutputs.each {
v ->
println v
println "h"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation project(":runner")
implementation group: 'com.qmuiteam', name: 'qmui', version: '2.0.0-alpha03'
implementation "com.mikepenz:materialdrawer:6.1.2"
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation "org.apache.commons:commons-io:1.3.2"
implementation project(path: ':api')
implementation "com.alibaba:fastjson:$FAST_JSON_VERSION"
implementation 'com.github.tiagohm.MarkdownView:library:0.19.0'
implementation 'com.blankj:utilcodex:1.26.0'
implementation 'com.just.agentweb:agentweb:4.1.3'
}
build.doLast {
if (BUILD_TEMPLATE) {
println "build template"
//将build之后的apk复制到runner/src/main/res/raw/server.apk
project.buildOutputs.forEach({
v ->
if (v.name == "release") {
copy {
from(v.outputFile)
into(new File("release"))
rename {
oldName ->
"template.apk"
}
}
}
})
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/JamesLiPython/JsDroid3.git
git@gitee.com:JamesLiPython/JsDroid3.git
JamesLiPython
JsDroid3
JsDroid3
master

搜索帮助

371d5123 14472233 46e8bd33 14472233