首页 开发技术 其它     /    RoomAsset:一个帮助程序库,可帮助将Room与现有的预填充数据库一起使用[不推荐使用]-源码

RoomAsset:一个帮助程序库,可帮助将Room与现有的预填充数据库一起使用[不推荐使用]-源码

上传者: weixin_42155721 | 上传时间:2023/7/25 20:42:01 | 文件大小:539KB | 文件类型:ZIP
RoomAsset:一个帮助程序库,可帮助将Room与现有的预填充数据库一起使用[不推荐使用]-源码
从2.2.0版开始,Room现在支持使用现成的预打包数据库由于有限的内置Room支持,这里是一个支持迁移以及保留指定列(例如包含用户数据)的库。
房间资产一个Android助手类,用于使用应用程序的原始资产文件来管理数据库创建和版本管理。
该库为开发人员提供了一种简单的方法,可将其Android应用程序与现有SQLite数据库(可能已预先填充数据)一起发货,并管理其初始创建以及后续版本发布所需的任何升级。
它被实现为Room的扩展,提供了一种将Room与现有SQLite数据库一起使用的简便方法。
Gradle依赖相依性添加到您的模块build.gradle文件(请确保版本的最后一个匹配):将其添加到存储库末尾的rootbuild.gradle中:allprojects{ repositories{ ... maven{url"https://jitpack.io"} }}添加依赖项dependencies{//...otherdependenciesimplementation'com.gi 本软件ID:14991089

文件下载

资源详情

[{"title":"(62个子文件539KB)RoomAsset:一个帮助程序库,可帮助将Room与现有的预填充数据库一起使用[不推荐使用]-源码","children":[{"title":"RoomAsset-master","children":[{"title":"gradlew <span style='color:#111;'>4.85KB</span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'>33B</span>","children":null,"spread":false},{"title":".idea","children":[{"title":"runConfigurations.xml <span style='color:#111;'>564B</span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'>1.67KB</span>","children":null,"spread":false},{"title":"gradle.xml <span style='color:#111;'>685B</span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'>159B</span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'>492B</span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'>180B</span>","children":null,"spread":false}],"spread":true},{"title":"CONTRIBUTING.md <span style='color:#111;'>32B</span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'>11.09KB</span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'>230B</span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'>52.38KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'>4.56KB</span>","children":null,"spread":false},{"title":"sample","children":[{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"huma","children":[{"title":"roomforasset","children":[{"title":"ExampleInstrumentedTest.kt <span style='color:#111;'>653B</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"huma","children":[{"title":"roomforasset","children":[{"title":"ExampleUnitTest.kt <span style='color:#111;'>346B</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'>787B</span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>3.28KB</span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'>4.96KB</span>","children":null,"spread":false},{"title":"ic_launcher_foreground.png <span style='color:#111;'>5.00KB</span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>9.22KB</span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'>15.73KB</span>","children":null,"spread":false},{"title":"ic_launcher_foreground.png <span style='color:#111;'>21.39KB</span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>4.54KB</span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'>7.21KB</span>","children":null,"spread":false},{"title":"ic_launcher_foreground.png <span style='color:#111;'>6.85KB</span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-anydpi-v26","children":[{"title":"ic_launcher.xml <span style='color:#111;'>268B</span>","children":null,"spread":false},{"title":"ic_launcher_round.xml <span style='color:#111;'>268B</span>","children":null,"spread":false}],"spread":false},{"title":"menu","children":[{"title":"menu_main_activity.xml <span style='color:#111;'>311B</span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>2.33KB</span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'>3.10KB</span>","children":null,"spread":false},{"title":"ic_launcher_foreground.png <span style='color:#111;'>2.59KB</span>","children":null,"spread":false}],"spread":false},{"title":"drawable","children":[{"title":"ic_launcher_background.xml <span style='color:#111;'>3.60KB</span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_java.xml <span style='color:#111;'>2.40KB</span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'>2.40KB</span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'>208B</span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'>72B</span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'>383B</span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>6.84KB</span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'>11.27KB</span>","children":null,"spread":false},{"title":"ic_launcher_foreground.png <span style='color:#111;'>14.24KB</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"assets","children":[{"title":"databases","children":[{"title":"chinook.db <span style='color:#111;'>873.00KB</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"huma","children":[{"title":"roomforasset","children":[{"title":"JavaActivity.java <span style='color:#111;'>2.76KB</span>","children":null,"spread":false},{"title":"AppDatabase.kt <span style='color:#111;'>291B</span>","children":null,"spread":false},{"title":"MainActivity.kt <span style='color:#111;'>2.13KB</span>","children":null,"spread":false},{"title":"Dao.kt <span style='color:#111;'>2.49KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'>7B</span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'>1.56KB</span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'>911B</span>","children":null,"spread":false}],"spread":true},{"title":"gradlew.bat <span style='color:#111;'>2.26KB</span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'>730B</span>","children":null,"spread":false},{"title":"CODE_OF_CONDUCT.md <span style='color:#111;'>3.14KB</span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'>116B</span>","children":null,"spread":false},{"title":"room-asset","children":[{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"huma","children":[{"title":"room_for_asset","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'>752B</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"huma","children":[{"title":"room_for_asset","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'>401B</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'>115B</span>","children":null,"spread":false},{"title":"res","children":[{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'>77B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"huma","children":[{"title":"room_for_asset","children":[{"title":"RoomAsset.kt <span style='color:#111;'>2.94KB</span>","children":null,"spread":false},{"title":"Utils.kt <span style='color:#111;'>321B</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'>7B</span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'>2.05KB</span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'>911B</span>","children":null,"spread":false}],"spread":true},{"title":"build.gradle <span style='color:#111;'>905B</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明