File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /build
Original file line number Diff line number Diff line change 1+
2+ apply plugin : ' com.android.library'
3+ // apply plugin: 'com.android.application'
4+ apply plugin : ' kotlin-android-extensions'
5+ apply plugin : ' kotlin-android'
6+
7+ android {
8+ compileSdkVersion rootProject. ext. compileSdkVersion
9+ buildToolsVersion rootProject. ext. buildToolsVersion
10+
11+ defaultConfig {
12+ minSdkVersion rootProject. ext. minSdkVersion
13+ targetSdkVersion rootProject. ext. targetSdkVersion
14+ versionCode rootProject. ext. versionCode
15+ versionName rootProject. ext. versionName
16+ // applicationId "com.frank.androidmedia"
17+ }
18+
19+ buildTypes {
20+ release {
21+ minifyEnabled false
22+ proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
23+ }
24+ }
25+ compileOptions {
26+ sourceCompatibility JavaVersion . VERSION_1_8
27+ targetCompatibility JavaVersion . VERSION_1_8
28+ }
29+ }
30+
31+ dependencies {
32+
33+ implementation fileTree(include : [' *.jar' ], dir : ' libs' )
34+ implementation " androidx.appcompat:appcompat:$rootProject . appcompatVersion "
35+ implementation " androidx.recyclerview:recyclerview:$rootProject . recyclerviewVersion "
36+ implementation " androidx.core:core-ktx:$rootProject . core_ktx "
37+ implementation " androidx.lifecycle:lifecycle-viewmodel-ktx:$rootProject . lifecycle_ktx "
38+ implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
39+
40+ }
Original file line number Diff line number Diff line change 1+ # Add project specific ProGuard rules here.
2+ # You can control the set of applied configuration files using the
3+ # proguardFiles setting in build.gradle.
4+ #
5+ # For more details, see
6+ # http://developer.android.com/guide/developing/tools/proguard.html
7+
8+ # If your project uses WebView with JS, uncomment the following
9+ # and specify the fully qualified class name to the JavaScript interface
10+ # class:
11+ #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+ # public *;
13+ #}
14+
15+ # Uncomment this to preserve the line number information for
16+ # debugging stack traces.
17+ #-keepattributes SourceFile,LineNumberTable
18+
19+ # If you keep the line number information, uncomment this to
20+ # hide the original source file name.
21+ #-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3+ package =" com.frank.androidmedia" >
4+
5+ </manifest >
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ dependencies {
6363 implementation " androidx.core:core-ktx:$rootProject . core_ktx "
6464 implementation " androidx.lifecycle:lifecycle-viewmodel-ktx:$rootProject . lifecycle_ktx "
6565 implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
66+ implementation project(' :AndroidMedia' )
6667 // implementation "libmp3" if you need mp3-lite module
6768// implementation project(':libmp3')
6869}
Original file line number Diff line number Diff line change 1+ include ' :AndroidMedia'
12include ' :app'
23include ' :Live'
34include ' :libmp3'
You can’t perform that action at this time.
0 commit comments