mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00

* Tech | API 30, Local Network Address (#2004) * 30 api + java 11 + scoped storage * update network address handler * fix * fix * put back permission * fix * fix * fix * ci * set tests off Co-authored-by: konstantiniiv <ki@anytype.io> * Fix | JVM version (#2033) * Tech | Update to API 31 (#2032) * update to API 31 * fix Co-authored-by: konstantiniiv <ki@anytype.io> * Fix | Network address handler (#2034) * Tech | Editor, update permissions (#2039) * add permission * remove legacy * fix permissions * fix * fix * add ext fun Co-authored-by: konstantiniiv <ki@anytype.io> * Tech | Permissions in Relations Value (#2041) * add permission * remove legacy * fix permissions * fix * fix * add ext fun * permissions in relations Co-authored-by: konstantiniiv <ki@anytype.io> * Tech | Update file logic to SAF (#2048) * update file logic * fixes * fix * fix * fixes * fixes * fix * fix * rename * fix * fix * style * fix * delete legacy test * add kdoc Co-authored-by: konstantiniiv <ki@anytype.io> * Tech | Add signing (#2047) * add signing * rename * fixes * debug signing Co-authored-by: E. Kozlov <ubuphobos@gmail.com> Co-authored-by: konstantiniiv <ki@anytype.io> * Tech | API 31, files refactoring (#2053) * refactoring * fix * fix * fix * fix Co-authored-by: konstantiniiv <ki@anytype.io> * put back create page * fix tests * temporary turn off signing * fix viewmodel nullable * ci off Co-authored-by: konstantiniiv <ki@anytype.io> Co-authored-by: E. Kozlov <ubuphobos@gmail.com>
64 lines
1.9 KiB
Groovy
64 lines
1.9 KiB
Groovy
apply from: './dependencies.gradle'
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '1.5.21'
|
|
ext.gradle_tools = '3.1.3'
|
|
ext.build_tools = '31.0.0'
|
|
ext.nav_version = '2.3.0'
|
|
ext.dokka_version = '1.4.32'
|
|
|
|
ext.compile_sdk = 31
|
|
ext.target_sdk = 31
|
|
ext.min_sdk = 24
|
|
|
|
ext.application_id = 'com.anytypeio.anytype'
|
|
ext.version_name = '1.0'
|
|
ext.version_code = 1
|
|
ext.test_runner = 'androidx.test.runner.AndroidJUnitRunner'
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.0.4'
|
|
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.8'
|
|
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
|
|
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
|
|
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
|
|
classpath 'com.squareup.wire:wire-gradle-plugin:3.5.0'
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Create github.properties in root project folder file
|
|
* with gpr.usr=GITHUB_USER_ID & gpr.key=PERSONAL_ACCESS_TOKEN
|
|
*/
|
|
def githubProperties = new Properties()
|
|
githubProperties.load(new FileInputStream(rootProject.file('github.properties')))
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven { url "https://jitpack.io" }
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/anytypeio/go-anytype-middleware")
|
|
credentials {
|
|
username = githubProperties['gpr.usr']
|
|
password = githubProperties['gpr.key']
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
}
|
|
|
|
task runUnitTests(dependsOn: [':app:testDebugUnitTest']) {
|
|
description 'Run all unit tests'
|
|
}
|