获得徽章 0
- app 是否是调试模式:
boolean isAppDebuggable = (data.appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;评论点赞 - 直接把 aar 上传到 maven 上apply plugin: "maven-publish"
publishing {
publications {
maven(MavenPublication) {
artifact('libs/xxxxx.aar') {
extension 'aar'
}
groupId 'xxxxxx'
artifactId 'xxxx'
version '1.2.3'
}
}
repositories {
//发布到自定义的目录
maven {
url 'xxxx.xxx'
credentials {
username = 'xxxx'
password = 'xxxxx'
}
}
}
}展开评论点赞 - 看了一下前端的东西;
1. web 1.0 时代: 一个页面提交,然后刷新整个页面, 整个刷新页面
2. web 2.0 时代:ajax 技术出现: 想要刷新部分页面,问题是修改 dom 和状态请求融和在一起;
3. 使用 css 改版一个 view 在不同状态的时候使用不同的 css,展示的样子;只能改变 dom 属性,不能改变 dom 结构;
4. states 业务后台数据和前端临时数据;
5. 虚拟 dom 技术, diff 内存中的 dom; 然后只更新渲染部分 dom; facebook
6. 改变state,view自动更新; facebook
7. 稍微看了一下 reactive, vue 的 hello world, 还是直接引入 js 文件,然后用自己的类去渲染;www.cnblogs.com
展开评论点赞 - // 导入一个 groovy 脚本
def importGroovyObject(String fileName) {
File sourceFile = new File(fileName)
Class groovyClass = new GroovyClassLoader(getClass().getClassLoader()).parseClass(sourceFile)
return (GroovyObject) groovyClass.newInstance()
}展开评论点赞 - // 导入一个 groovy 脚本
def importGroovyObject(String fileName) {
File sourceFile = new File(fileName)
Class groovyClass = new GroovyClassLoader(getClass().getClassLoader()).parseClass(sourceFile)
return (GroovyObject) groovyClass.newInstance()
}展开评论点赞 - 今天在公司一天都在写 shell 脚本;归纳一下 shell 脚本的一些问题吧;
1. 参数赋值的时候,等号2边不能够有空格
2. [[ ]] 这种在 if 后面的时候,需要有空格,不然也会报错;经常报错
3. 参数最好都用 $ 符号来占位一下;
4. 在 Android studio 中用过插件来规范;格式化一下;展开评论点赞 - 评论点赞
- Could not find method jackOptions() for arguments:
主要原因, jack 编译已经被废弃了, 所以要把
jackOptions {
enabled true
}
这段代码去掉。tools.android.com
展开评论点赞