常规功能开发,几个美女图片加载列表, 由于最近几个接口都失效了,准备找些新接口测试
kotlin Coroutine 替换掉 rxJava,同时升级Retrofit 到 2.6配合协程使用
support迁移到了androidx
修复douban接口报错问题
引入jetpack(优先使用livedata,viewmodel,databinding), 取代mvp开发模式,删除mvp框架
修复列表翻页问题, 完善jetpack, 升级GLide, 数据库 room 替换 realm , 增加UI细节
高度封装jetpack MVVM: 抽象列表页的逻辑进入基类,包括数据UI初始化,仓库初始化,加载数据和翻页,子类只负责调用接口,抽象databindingAdapter支持多类型布局
由于上传到google play上,尝试了下app bundle功能
android {
bundle {
density {
enableSplit = true
}
language {
enableSplit = true
}
abi {
enableSplit = true
}
}
}
1 下载命令行工具 https://github.com/google/bundletool/releases, 是个jar文件
java -jar bundletool-all-0.11.0.jar build-apks --bundle=输入abb文件路径/app.aab --output=输出apks路径/my_app.apks
打包出来的apks文件改下后缀为zip,然后解压下。可以看到各种feature的apk
- Android 4.3 or higher
Copyright 2018-2020 jiangtao.liang.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.