Commit 70c68386 by 洪国微

a

parent 74f4e08b
ext { ext {
kotlin_version = '1.3.21' kotlin_version = '1.3.21'
dev_mode = true dev_mode = false
ydl_app = [ ydl_app = [
appName : "心理咨询壹点灵", appName : "心理咨询壹点灵",
......
...@@ -2,6 +2,7 @@ apply plugin: 'com.android.library' ...@@ -2,6 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-kapt'
apply from: "../maven_push.gradle"
kapt { kapt {
arguments { arguments {
...@@ -43,11 +44,6 @@ android { ...@@ -43,11 +44,6 @@ android {
buildConfigField "String", "AGORA_APPID", '"13b1536698f64905a1e7e5bb978ba821"' buildConfigField "String", "AGORA_APPID", '"13b1536698f64905a1e7e5bb978ba821"'
} }
} }
publishNonDefault true
productFlavors {
ydl {}
xlzx {}
}
} }
......
IS_PUBLISH=true
VERSION_NAME=0.0.1
\ No newline at end of file
modular {
packageName "com.ydl.audioim"
// 模块发布需要的参数
publish {
modules {
xlzx {
//发布信息 module/api 通用
groupId = "com.ydl"
artifactId = "m-audioim-module-xlzx"
// 上报的业务模块 aar 包的版本号
version = "0.0.1"
}
ydl{
//发布信息 module/api 通用
groupId = "com.ydl"
artifactId = "m-audioim-module-ydl"
// 上报的业务模块 aar 包的版本号
version = "0.0.1"
}
}
api {
//发布信息 module/api 通用
groupId = "com.ydl"
artifactId = "m-audioim-api"
// version = "0.0.1"
// API 层打包时需要引入的依赖
apiDependencies {
implementation "com.google.code.gson:gson:2.8.2"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.alibaba:arouter-api:1.4.1'
}
}
}
}
\ No newline at end of file
...@@ -491,6 +491,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi ...@@ -491,6 +491,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
/** /**
* 请求权限 * 请求权限
*/ */
@SuppressLint("CheckResult")
private fun requestPermission() { private fun requestPermission() {
val rxPermissions = RxPermissions(this) val rxPermissions = RxPermissions(this)
rxPermissions.requestEach(Manifest.permission.RECORD_AUDIO) rxPermissions.requestEach(Manifest.permission.RECORD_AUDIO)
...@@ -510,6 +511,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi ...@@ -510,6 +511,7 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
} }
} }
@SuppressLint("CheckResult")
private fun init() { private fun init() {
wave_view.start() wave_view.start()
//初始化声网 //初始化声网
......
package com.ydl.audioim.api
/**
* Created by hgw on 2018/5/3.
*/
interface IAVRouter {
/**
* 登录agora
*/
fun loginAgora(userId:String?)
}
\ No newline at end of file
...@@ -84,10 +84,15 @@ dependencies { ...@@ -84,10 +84,15 @@ dependencies {
implementation 'com.alibaba:fastjson:1.2.38' implementation 'com.alibaba:fastjson:1.2.38'
api project(':m-audioim') // implementation project(":ydl-platform")
// api project(':m-audioim')
api ('com.ydl:m-audioim:0.0.1@aar'){
transitive = true
}
implementation'com.ydl:router:1.0.0-SNAPSHOT@aar' implementation'com.ydl:router:1.0.0-SNAPSHOT@aar'
// implementation project(":ydl-platform")
implementation('com.ydl:ydl-platform:0.0.12@aar') { implementation('com.ydl:ydl-platform:0.0.12@aar') {
transitive = true transitive = true
// exclude group: 'com.ydl', module: 'ydl-utils' // exclude group: 'com.ydl', module: 'ydl-utils'
......
...@@ -16,7 +16,7 @@ modular { ...@@ -16,7 +16,7 @@ modular {
groupId = "com.ydl" groupId = "com.ydl"
artifactId = "m-confide-module-ydl" artifactId = "m-confide-module-ydl"
// 上报的业务模块 aar 包的版本号 // 上报的业务模块 aar 包的版本号
version = "0.0.1" version = "0.0.4"
} }
} }
...@@ -24,7 +24,7 @@ modular { ...@@ -24,7 +24,7 @@ modular {
//发布信息 module/api 通用 //发布信息 module/api 通用
groupId = "com.ydl" groupId = "com.ydl"
artifactId = "m-confide-api" artifactId = "m-confide-api"
//version = "0.0.1" // version = "0.0.1"
// API 层打包时需要引入的依赖 // API 层打包时需要引入的依赖
apiDependencies { apiDependencies {
implementation "com.google.code.gson:gson:2.8.2" implementation "com.google.code.gson:gson:2.8.2"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment