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

add core_utils module

This commit is contained in:
Ivanov Konstantin 2019-02-24 12:31:07 +03:00
parent 0bcb0e601b
commit 6cd437175a
8 changed files with 80 additions and 1 deletions

1
core_utils/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/build

37
core_utils/build.gradle Normal file
View file

@ -0,0 +1,37 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
def config = rootProject.extensions.getByName("ext")
compileSdkVersion config["compile_sdk"]
defaultConfig {
minSdkVersion config["min_sdk"]
targetSdkVersion config["target_sdk"]
versionCode config["version_code"]
versionName config["version_name"]
testInstrumentationRunner config["test_runner"]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
def applicationDependencies = rootProject.ext.mainApplication
//Compile time dependencies
kapt applicationDependencies.daggerCompiler
//Application dependencies
implementation applicationDependencies.kotlin
implementation applicationDependencies.dagger
}

21
core_utils/proguard-rules.pro vendored Normal file
View file

@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

View file

@ -0,0 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.agileburo.anytype.core_utils" />

View file

@ -0,0 +1,7 @@
package com.agileburo.anytype.core_utils.di
import javax.inject.Scope
@Scope
@kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
annotation class PerFeature

View file

@ -0,0 +1,7 @@
package com.agileburo.anytype.core_utils.di
import javax.inject.Scope
@Scope
@kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
annotation class PerScreen

View file

@ -0,0 +1,3 @@
<resources>
<string name="app_name">CoreUtils</string>
</resources>

View file

@ -1 +1,2 @@
include ':app'
include ':app',
':core_utils'