diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9347254 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.iml +.gradle +/local.properties +/.idea +/build +.DS_Store diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..c73e966 --- /dev/null +++ b/build.gradle @@ -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 +} diff --git a/constants.gradle b/constants.gradle index d71b4c2..31e308b 100644 --- a/constants.gradle +++ b/constants.gradle @@ -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' } diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..dbb7bf7 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,2 @@ +android.enableJetifier=true +android.useAndroidX=true diff --git a/library-rtsp/build.gradle b/library-rtsp/build.gradle index d8f4975..762e1b5 100644 --- a/library-rtsp/build.gradle +++ b/library-rtsp/build.gradle @@ -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 @@ -8,6 +10,8 @@ android { defaultConfig { minSdkVersion project.ext.minSdkVersion targetSdkVersion project.ext.targetSdkVersion + versionName project.ext.releaseVersion + versionCode project.ext.releaseVersionCode } } diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..7be5882 --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +include ':library-rtsp'