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:
parent
0bcb0e601b
commit
6cd437175a
8 changed files with 80 additions and 1 deletions
1
core_utils/.gitignore
vendored
Normal file
1
core_utils/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/build
|
37
core_utils/build.gradle
Normal file
37
core_utils/build.gradle
Normal 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
21
core_utils/proguard-rules.pro
vendored
Normal 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
|
2
core_utils/src/main/AndroidManifest.xml
Normal file
2
core_utils/src/main/AndroidManifest.xml
Normal file
|
@ -0,0 +1,2 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.agileburo.anytype.core_utils" />
|
|
@ -0,0 +1,7 @@
|
|||
package com.agileburo.anytype.core_utils.di
|
||||
|
||||
import javax.inject.Scope
|
||||
|
||||
@Scope
|
||||
@kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class PerFeature
|
|
@ -0,0 +1,7 @@
|
|||
package com.agileburo.anytype.core_utils.di
|
||||
|
||||
import javax.inject.Scope
|
||||
|
||||
@Scope
|
||||
@kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class PerScreen
|
3
core_utils/src/main/res/values/strings.xml
Normal file
3
core_utils/src/main/res/values/strings.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<resources>
|
||||
<string name="app_name">CoreUtils</string>
|
||||
</resources>
|
|
@ -1 +1,2 @@
|
|||
include ':app'
|
||||
include ':app',
|
||||
':core_utils'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue