Skip to content

Commit 365abaf

Browse files
author
xufuji456
committed
Feature: add AndroidMedia module
1 parent ac97af3 commit 365abaf

6 files changed

Lines changed: 69 additions & 0 deletions

File tree

AndroidMedia/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

AndroidMedia/build.gradle

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
}

AndroidMedia/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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>

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include ':AndroidMedia'
12
include ':app'
23
include ':Live'
34
include ':libmp3'

0 commit comments

Comments
 (0)