Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
21b13392
Commit
21b13392
authored
Jul 30, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:加arouter
parent
78647265
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-0
JsImpl.kt
m-js/src/main/java/com/ydl/js/moduler/service/JsImpl.kt
+2
-0
MuseImpl.kt
m-muse/src/main/java/com/yidianling/muse/moduler/service/MuseImpl.kt
+2
-0
build.gradle
ydl-media/build.gradle
+8
-0
MediaImpl.kt
ydl-media/src/main/java/com/ydl/media/moduler/service/MediaImpl.kt
+2
-0
No files found.
m-js/src/main/java/com/ydl/js/moduler/service/JsImpl.kt
View file @
21b13392
package
com.ydl.js.moduler.service
import
android.content.Context
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.ydl.js.api.IJsService
@Route
(
path
=
"/js/JsService"
)
class
JsImpl
:
IJsService
{
companion
object
{
var
isH5Open
=
true
...
...
m-muse/src/main/java/com/yidianling/muse/moduler/service/MuseImpl.kt
View file @
21b13392
...
...
@@ -2,9 +2,11 @@ package com.yidianling.muse.moduler.service
import
android.app.Activity
import
android.content.Context
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.ydl.muse.api.IMuseService
import
com.yidianling.muse.activity.ChooseMusicActivity
@Route
(
path
=
"/muse/MuseService"
)
class
MuseImpl
:
IMuseService
{
override
fun
init
(
context
:
Context
?)
{
...
...
ydl-media/build.gradle
View file @
21b13392
...
...
@@ -4,6 +4,11 @@ apply plugin: 'kotlin-android-extensions'
apply
plugin:
'kotlin-kapt'
apply
from:
"../publish.gradle"
kapt
{
arguments
{
arg
(
"AROUTER_MODULE_NAME"
,
project
.
getName
())
}
}
android
{
compileSdkVersion
28
...
...
@@ -42,6 +47,9 @@ dependencies {
api
(
rootProject
.
ext
.
dependencies
[
"ydl-ijkplayer-jjdxm"
])
{
exclude
group:
'com.android.support'
,
module:
'appcompat-v7'
}
implementation
"com.alibaba:arouter-api:$arouter_api"
// 注意此处的依赖方式:kotlin中使用和java中使用方式有不同
kapt
"com.alibaba:arouter-compiler:$arouter_compiler"
api
project
(
':ydl-platform'
)
implementation
project
(
':api:media'
)
...
...
ydl-media/src/main/java/com/ydl/media/moduler/service/MediaImpl.kt
View file @
21b13392
...
...
@@ -2,10 +2,12 @@ package com.ydl.media.moduler.service
import
android.app.Activity
import
android.content.Context
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.ydl.media.api.IMediaService
import
com.ydl.media.audio.AudioPlayer
import
com.ydl.media.view.PlayerFloatHelper
@Route
(
path
=
"/media/MediaService"
)
class
MediaImpl
:
IMediaService
{
override
fun
init
(
context
:
Context
?)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment