Skip to content

Commit

Permalink
Updated build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyvasilyev committed Apr 27, 2020
1 parent db363de commit 286cea0
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.iml
.gradle
/local.properties
/.idea
/build
.DS_Store
23 changes: 23 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
buildscript {
repositories {
jcenter()
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}

allprojects {
repositories {
jcenter()
google()
mavenCentral()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
2 changes: 2 additions & 0 deletions constants.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ project.ext {
buildToolsVersion = '29.0.3'
minSdkVersion = 21 // 5.0
targetSdkVersion = 29 // 10.0
releaseVersion = "1.0.0"
releaseVersionCode = 100

androidXAnnotationVersion = '1.1.0'
}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
android.enableJetifier=true
android.useAndroidX=true
4 changes: 4 additions & 0 deletions library-rtsp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
apply from: '../constants.gradle'
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
group = 'com.github.alexeyvasilyev'

android {
compileSdkVersion project.ext.compileSdkVersion
Expand All @@ -8,6 +10,8 @@ android {
defaultConfig {
minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion
versionName project.ext.releaseVersion
versionCode project.ext.releaseVersionCode
}
}

Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ':library-rtsp'

0 comments on commit 286cea0

Please sign in to comment.