
Android架构
原总破局
刻意训练,积极反馈。
展开
-
Proto DataStore-----JAVA
为了编译proto文件,引入protobuf插件1、项目build.gradle加入dependencies { classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.18' }2、模块buid.gradle加入apply plugin: 'com.google.protobuf' protobuf { protoc { artifact = "com.google.protobuf:proto原创 2022-01-20 09:53:15 · 418 阅读 · 0 评论 -
Preferences DataStore------JAVA
DataStore | Android 开发者 | Android Developers本文做个demopublic class TestDataStore { private static TestDataStore instance; private RxDataStore<Preferences> dataStore; public static YshpDataStore getInstance() { if (instan...原创 2022-01-19 17:56:49 · 2376 阅读 · 0 评论