mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
Tech | Android Gradle plugin 4.2.1 (#1495)
This commit is contained in:
parent
302e95de28
commit
22fbe4a51b
5 changed files with 21 additions and 10 deletions
16
build.gradle
16
build.gradle
|
@ -25,7 +25,7 @@ buildscript {
|
|||
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.5.3'
|
||||
classpath 'com.android.tools.build:gradle:4.2.1'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
|
||||
classpath 'com.google.gms:google-services:4.3.4'
|
||||
|
@ -45,6 +45,20 @@ allprojects {
|
|||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
repositories {
|
||||
maven {
|
||||
url "${rootProject.projectDir}/libs"
|
||||
metadataSources {
|
||||
artifact()
|
||||
}
|
||||
content {
|
||||
includeModule("io.anytype", "middleware-library")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@ org.gradle.jvmargs=-Xmx2048M
|
|||
org.gradle.configureondemand=true
|
||||
|
||||
android.enableR8=true
|
||||
android.enableUnitTestBinaryResources=true
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=false
|
||||
|
||||
|
|
|
@ -39,8 +39,8 @@ printf "Done\n"
|
|||
|
||||
printf "Preparing files\n"
|
||||
|
||||
mkdir -p libs/
|
||||
mv /tmp/lib/lib.aar libs/
|
||||
mkdir -p libs/io/anytype/middleware-library/1.0.0/
|
||||
mv /tmp/lib/lib.aar libs/io/anytype/middleware-library/1.0.0/middleware-library-1.0.0.aar
|
||||
|
||||
rm -rf /tmp/lib
|
||||
rm -rf $FILE
|
||||
|
|
|
@ -26,15 +26,11 @@ android {
|
|||
dependencies {
|
||||
|
||||
implementation project(':core-models')
|
||||
|
||||
def props = new Properties()
|
||||
project.rootProject.file('configuration.properties').withDataInputStream { props.load(it) }
|
||||
def libraryPath = project.rootProject.file(props.getProperty('middleware.path'))
|
||||
implementation(files(libraryPath))
|
||||
|
||||
implementation project(':protocol')
|
||||
implementation project(':data')
|
||||
|
||||
implementation "io.anytype:middleware-library:1.0.0@aar"
|
||||
|
||||
def applicationDependencies = rootProject.ext.mainApplication
|
||||
def unitTestDependencies = rootProject.ext.unitTesting
|
||||
|
||||
|
|
|
@ -38,6 +38,8 @@ dependencies {
|
|||
implementation databaseDependencies.roomKtx
|
||||
|
||||
kapt databaseDependencies.annotations
|
||||
// Current workaround for ROOM on MAC M1 issue.
|
||||
kapt("org.xerial:sqlite-jdbc:3.34.0")
|
||||
|
||||
implementation applicationDependencies.timber
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue