Commit 2ca10186 by 徐健

增加flutter代理设置功能

parent 7b03f104
...@@ -207,6 +207,7 @@ dependencies { ...@@ -207,6 +207,7 @@ dependencies {
api project(':m-course') api project(':m-course')
implementation modularPublication('com.ydl:m-fm-api') implementation modularPublication('com.ydl:m-fm-api')
} else { } else {
//发布模式 //发布模式
api 'com.ydl:m-user-module-ydl:0.0.6' api 'com.ydl:m-user-module-ydl:0.0.6'
api rootProject.ext.dependencies["ydl-webview"] api rootProject.ext.dependencies["ydl-webview"]
......
...@@ -42,14 +42,14 @@ ext { ...@@ -42,14 +42,14 @@ ext {
ydlPublishVersion = [ ydlPublishVersion = [
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.26", "m-confide" : "0.0.27.1",
"m-consultant" : "0.0.39", "m-consultant" : "0.0.39",
"m-fm" : "0.0.20", "m-fm" : "0.0.20",
"m-user" : "0.0.33", "m-user" : "0.0.33",
// 接入flutter的模块 // 接入flutter的模块
"m-tests" : "0.0.11.1", "m-tests" : "0.0.11.5",
"m-muse" : "0.0.14.1", "m-muse" : "0.0.14.5",
"m-course" : "0.0.25.1", "m-course" : "0.0.28.5",
//-------------- 业务模块 API 层 -------------- //-------------- 业务模块 API 层 --------------
"m-audioim-api" : "0.0.2", "m-audioim-api" : "0.0.2",
...@@ -69,19 +69,19 @@ ext { ...@@ -69,19 +69,19 @@ ext {
"ydl-webview" : "0.0.27", "ydl-webview" : "0.0.27",
"ydl-media" : "0.0.13", "ydl-media" : "0.0.13",
"ydl-pay" : "0.0.10", "ydl-pay" : "0.0.10",
"m-audioim" : "0.0.26", "m-audioim" : "0.0.26.7",
//以下 几乎不会动 //以下 几乎不会动
"router" : "0.0.1", "router" : "0.0.1",
"ydl-net" : "0.0.2", "ydl-net" : "0.0.2",
"ydl-utils" : "0.0.3", "ydl-utils" : "0.0.3",
"ydl-flutter-base": "0.0.5.3", "ydl-flutter-base": "0.0.5.8",
] ]
ydlCompileVersion = [ ydlCompileVersion = [
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.23", "m-confide" : "0.0.27.1",
"m-consultant" : "0.0.26", "m-consultant" : "0.0.26",
"m-course" : "0.0.22", "m-course" : "0.0.22",
"m-fm" : "0.0.15", "m-fm" : "0.0.15",
...@@ -110,14 +110,14 @@ ext { ...@@ -110,14 +110,14 @@ ext {
"ydl-webview" : "0.0.27", "ydl-webview" : "0.0.27",
"ydl-media" : "0.0.13", "ydl-media" : "0.0.13",
"ydl-pay" : "0.0.10", "ydl-pay" : "0.0.10",
"m-audioim" : "0.0.26", "m-audioim" : "0.0.26.7",
//以下 几乎不会动 //以下 几乎不会动
"router" : "0.0.1", "router" : "0.0.1",
"ydl-net" : "0.0.2", "ydl-net" : "0.0.2",
"ydl-utils" : "0.0.3", "ydl-utils" : "0.0.3",
"ydl-flutter-base": "0.0.5.3", "ydl-flutter-base": "0.0.5.8",
] ]
dependencies = [ dependencies = [
...@@ -255,7 +255,7 @@ ext { ...@@ -255,7 +255,7 @@ ext {
//flutter功能组件升级===>发布ydl-flutter组件===>引用flutter相关的业务模块 //flutter功能组件升级===>发布ydl-flutter组件===>引用flutter相关的业务模块
"ydl-flutter-base" : "com.ydl:ydl-flutter-base:${ydlCompileVersion["ydl-flutter-base"]}", //组件化项目中的flutter base模块 "ydl-flutter-base" : "com.ydl:ydl-flutter-base:${ydlCompileVersion["ydl-flutter-base"]}", //组件化项目中的flutter base模块
"ydl-flutter" : "com.ydl:ydl-flutter:0.0.15.1@aar", //flutter aar "ydl-flutter" : "com.ydl:ydl-flutter:0.0.15.3@aar", //flutter aar
"ydl-flutter-sp" : "com.ydl:ydl-flutter-sp:0.0.2@aar", //flutter 缓存 aar "ydl-flutter-sp" : "com.ydl:ydl-flutter-sp:0.0.2@aar", //flutter 缓存 aar
//基础组件 <<--- 先发这个,发完改这里的版本号 //基础组件 <<--- 先发这个,发完改这里的版本号
......
...@@ -6,7 +6,6 @@ modular { ...@@ -6,7 +6,6 @@ modular {
//发布信息 module/api 通用 //发布信息 module/api 通用
groupId = "com.ydl" groupId = "com.ydl"
artifactId = "m-audioim-api" artifactId = "m-audioim-api"
// version = rootProject.ext.ydlPublishVersion[childProject.getName()+"-api"]
version = "0.0.5" version = "0.0.5"
// API 层打包时需要引入的依赖 // API 层打包时需要引入的依赖
apiDependencies { apiDependencies {
......
...@@ -88,9 +88,7 @@ dependencies { ...@@ -88,9 +88,7 @@ dependencies {
}else { }else {
//发布时使用 //发布时使用
api rootProject.ext.dependencies["ydl-media"] api rootProject.ext.dependencies["ydl-media"]
api(rootProject.ext.dependencies["m-audioim"]){ api rootProject.ext.dependencies["m-audioim"]
transitive = true
}
api(rootProject.ext.dependencies["ydl-platform"]) { api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true transitive = true
} }
......
package com.channel.ydl_flutter_base.plugin package com.channel.ydl_flutter_base.plugin
import android.content.SharedPreferences
import android.text.TextUtils import android.text.TextUtils
import com.channel.ydl_flutter_base.BuildConfig import com.channel.ydl_flutter_base.BuildConfig
import com.channel.ydl_flutter_base.base.BaseFlutterFragment import com.channel.ydl_flutter_base.base.BaseFlutterFragment
import com.ydl.ydlcommon.base.BaseApp import com.ydl.ydlcommon.base.BaseApp
import com.ydl.ydlcommon.data.PlatformDataManager import com.ydl.ydlcommon.data.PlatformDataManager
import com.ydl.ydlcommon.modular.ModularServiceManager import com.ydl.ydlcommon.modular.ModularServiceManager
import com.ydl.ydlcommon.utils.SharedPreferencesEditor
import com.yidianling.common.tools.RxDeviceTool import com.yidianling.common.tools.RxDeviceTool
import io.flutter.app.FlutterActivity import io.flutter.app.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine import io.flutter.embedding.engine.FlutterEngine
...@@ -64,6 +66,8 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler { ...@@ -64,6 +66,8 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler {
RxDeviceTool.getBuildMANUFACTURER() + "," + RxDeviceTool.getBuildBrandModel() + "," + RxDeviceTool.getOsBuileVersion() + "," + RxDeviceTool.getAppVersionName( RxDeviceTool.getBuildMANUFACTURER() + "," + RxDeviceTool.getBuildBrandModel() + "," + RxDeviceTool.getOsBuileVersion() + "," + RxDeviceTool.getAppVersionName(
BaseApp.getApp() BaseApp.getApp()
) )
var res = SharedPreferencesEditor.getString("flutter_proxy_sp_ip")
mMap["proxyIp"] = if (TextUtils.isEmpty(res)) "" else res
result.success(mMap) result.success(mMap)
} }
} }
......
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