Fix build on Apple Silicon devices

This commit is contained in:
Geoffrey Métais 2021-04-26 21:31:02 +02:00 committed by Nicolas Pomepuy
parent 9c78e762dd
commit bc7b4879a7
4 changed files with 8 additions and 2 deletions

View File

@ -68,6 +68,7 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
//Room
implementation "androidx.room:room-ktx:$rootProject.ext.roomVersion"
kapt ('org.xerial:sqlite-jdbc:3.34.0')
kapt "androidx.room:room-compiler:$rootProject.ext.roomVersion"
implementation project(':application:tools')
implementation project(':application:resources')

View File

@ -55,6 +55,8 @@ dependencies {
//Room
implementation "androidx.room:room-runtime:$rootProject.ext.roomVersion"
// Provide proper JDBC version, see https://issuetracker.google.com/issues/174695268
kapt ('org.xerial:sqlite-jdbc:3.34.0')
kapt "androidx.room:room-compiler:$rootProject.ext.roomVersion"

View File

@ -173,7 +173,10 @@ dependencies {
api "androidx.lifecycle:lifecycle-livedata-ktx:$rootProject.ext.lifecycleVersion"
api "androidx.lifecycle:lifecycle-common-java8:$rootProject.ext.lifecycleVersion"
api "androidx.room:room-runtime:$rootProject.ext.roomVersion"
kapt "androidx.room:room-compiler:$rootProject.ext.roomVersion"
kapt ('org.xerial:sqlite-jdbc:3.34.0')
kapt("androidx.room:room-compiler:$rootProject.ext.roomVersion")
api "androidx.paging:paging-runtime-ktx:$rootProject.ext.pagingVersion"

View File

@ -62,7 +62,7 @@ ext {
constraintLayoutVersion = '2.0.4'
viewPager2Version = "1.0.0"
archVersion = '2.1.0'
roomVersion = '2.2.6'
roomVersion = '2.3.0'
pagingVersion = '2.1.2'
junitVersion = '4.13'
mockito = '2.25.0'