From feeaadc4972dfbccaea481780e53dd5b089da767 Mon Sep 17 00:00:00 2001 From: HaliksaR Date: Thu, 26 Nov 2020 22:53:34 +0700 Subject: [PATCH] improvement/core-presentation create core-presentation --- app/build.gradle | 1 + core-presentation/.gitignore | 1 + core-presentation/build.gradle | 39 +++++++++++++++++++ .../src/main/AndroidManifest.xml | 1 + .../core/presentation/BaseViewModel.kt | 7 ++++ settings.gradle | 2 + 6 files changed, 51 insertions(+) create mode 100644 core-presentation/.gitignore create mode 100644 core-presentation/build.gradle create mode 100644 core-presentation/src/main/AndroidManifest.xml create mode 100644 core-presentation/src/main/java/com/vanced/manager/core/presentation/BaseViewModel.kt diff --git a/app/build.gradle b/app/build.gradle index 3253aca2..2b8760ac 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -98,6 +98,7 @@ static def surroundWithQuotes(Object[] arr) { dependencies { + implementation project(':core-presentation') implementation project(":core-ui") // Kotlin diff --git a/core-presentation/.gitignore b/core-presentation/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/core-presentation/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/core-presentation/build.gradle b/core-presentation/build.gradle new file mode 100644 index 00000000..ddc8a571 --- /dev/null +++ b/core-presentation/build.gradle @@ -0,0 +1,39 @@ +plugins { + id 'com.android.library' + id 'kotlin-android' +} + +android { + compileSdkVersion 30 + buildToolsVersion "30.0.2" + + defaultConfig { + minSdkVersion 16 + targetSdkVersion 30 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles "consumer-rules.pro" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } +} + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + implementation 'androidx.core:core-ktx:1.3.2' + implementation 'androidx.appcompat:appcompat:1.2.0' +} \ No newline at end of file diff --git a/core-presentation/src/main/AndroidManifest.xml b/core-presentation/src/main/AndroidManifest.xml new file mode 100644 index 00000000..f9c138f6 --- /dev/null +++ b/core-presentation/src/main/AndroidManifest.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/core-presentation/src/main/java/com/vanced/manager/core/presentation/BaseViewModel.kt b/core-presentation/src/main/java/com/vanced/manager/core/presentation/BaseViewModel.kt new file mode 100644 index 00000000..4236db91 --- /dev/null +++ b/core-presentation/src/main/java/com/vanced/manager/core/presentation/BaseViewModel.kt @@ -0,0 +1,7 @@ +package com.vanced.manager.core.presentation + +import androidx.lifecycle.ViewModel + +class BaseViewModel : ViewModel() { + //TODO +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index fe556ab4..4a0a39a7 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,5 +1,7 @@ rootProject.name='Vanced Manager' include ':app' +include ':core-presentation' include ':core-ui' + include ':feature-home' \ No newline at end of file