Commit 809095ed authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

initial base gradle

parent 18cdd5a1
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
</profile-state> </profile-state>
</entry> </entry>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="JDK" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="JDK" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">
......
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
...@@ -2,33 +2,78 @@ apply plugin: 'com.android.application' ...@@ -2,33 +2,78 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-android-extensions'
apply from: '../dependencies.gradle'
//apply plugin: 'io.fabric'
android { android {
compileSdkVersion 28 compileSdkVersion compileSdkVersion_RoomPark
defaultConfig { defaultConfig {
applicationId "com.biganto.visual.roompark" applicationId $APPLICATION_ID
minSdkVersion 21 ndk {
targetSdkVersion 28 abiFilters 'armeabi-v7a', 'x86'
versionCode 1 }
versionName "1.0" minSdkVersion minSdkVersion_RoomPark
targetSdkVersion targetSdkVersion_RoomPark
versionCode VERSION_CODE
versionName VERSION_NAME
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }
buildTypes { buildTypes {
debug {
aaptOptions.cruncherEnabled = false
ext.alwaysUpdateBuildId = false
}
release { release {
minifyEnabled false minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
debuggable false
}
}
androidExtensions {
experimental = true
}
configurations.all {
resolutionStrategy.force "com.bluelinelabs:conductor:$conductorVersion"
} }
aaptOptions {
noCompress '.unity3d', '.ress', '.resource', '.obb'
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
} }
} }
kapt {
mapDiagnosticLocations = true
}
dependencies { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.2' implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation 'androidx.core:core-ktx:1.0.2' implementation 'androidx.core:core-ktx:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
//Material
implementation "com.google.android.material:material:$materialVersion"
//Constraint Layout
implementation "androidx.constraintlayout:constraintlayout:$constrainLayoutVersion"
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1' androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<activity android:name=".RoomParkMainAcitvity"> <activity android:name=".base.RoomParkMainAcitvity">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
......
package com.biganto.visual.roompark.base
import android.app.Application
/**
* Created by Vladislav Bogdashkin on 03.09.2019.
*/
class RoomParkApplication : Application() {
override fun onCreate() {
super.onCreate()
}
}
\ No newline at end of file
package com.biganto.visual.roompark package com.biganto.visual.roompark.base
import android.os.Bundle import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.app.AppCompatActivity
import com.biganto.visual.roompark.R
class RoomParkMainAcitvity : AppCompatActivity() { class RoomParkMainAcitvity : AppCompatActivity() {
......
...@@ -3,12 +3,15 @@ ...@@ -3,12 +3,15 @@
buildscript { buildscript {
ext.kotlin_version = '1.3.41' ext.kotlin_version = '1.3.41'
repositories { repositories {
flatDir {
dirs 'libs'
}
google() google()
jcenter() jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.5.0' classpath "com.android.tools.build:gradle:3.5.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
......
ext {
$APPLICATION_ID = "com.biganto.visual.roompark"
targetSdkVersion_RoomPark = 28
minSdkVersion_RoomPark = 21
compileSdkVersion_RoomPark = 28
VERSION_CODE = 1
VERSION_NAME = "0.0.1"
supportLibraryVersion = '1.1.0-alpha05'
constrainLayoutVersion = '1.1.3'
// requeryVersion = '1.5.1'
// rxBindingVersion = '2.1.1'
conductorVersion = '3.0.0-rc1'
materialVersion = '1.1.0-alpha07'
gradleVersion = '3.5.0'
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment