diff --git a/AndroidMedia/.gitignore b/AndroidMedia/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/AndroidMedia/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/AndroidMedia/build.gradle b/AndroidMedia/build.gradle new file mode 100644 index 0000000..181e8fa --- /dev/null +++ b/AndroidMedia/build.gradle @@ -0,0 +1,40 @@ + +apply plugin: 'com.android.library' +//apply plugin: 'com.android.application' +apply plugin: 'kotlin-android-extensions' +apply plugin: 'kotlin-android' + +android { + compileSdkVersion rootProject.ext.compileSdkVersion + buildToolsVersion rootProject.ext.buildToolsVersion + + defaultConfig { + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode rootProject.ext.versionCode + versionName rootProject.ext.versionName +// applicationId "com.frank.androidmedia" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + +dependencies { + + implementation fileTree(include: ['*.jar'], dir: 'libs') + implementation "androidx.appcompat:appcompat:$rootProject.appcompatVersion" + implementation "androidx.recyclerview:recyclerview:$rootProject.recyclerviewVersion" + implementation "androidx.core:core-ktx:$rootProject.core_ktx" + implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$rootProject.lifecycle_ktx" + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + +} \ No newline at end of file diff --git a/AndroidMedia/proguard-rules.pro b/AndroidMedia/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/AndroidMedia/proguard-rules.pro @@ -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 \ No newline at end of file diff --git a/AndroidMedia/src/main/AndroidManifest.xml b/AndroidMedia/src/main/AndroidManifest.xml new file mode 100644 index 0000000..c5993b2 --- /dev/null +++ b/AndroidMedia/src/main/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 5739a24..a0dde26 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -63,6 +63,7 @@ dependencies { implementation "androidx.core:core-ktx:$rootProject.core_ktx" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$rootProject.lifecycle_ktx" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation project(':AndroidMedia') //implementation "libmp3" if you need mp3-lite module // implementation project(':libmp3') } diff --git a/settings.gradle b/settings.gradle index 8663987..b4f965b 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,4 @@ +include ':AndroidMedia' include ':app' include ':Live' include ':libmp3'