Commit b78de735 by konghaorui

补充im目录结构

parent 370deb0b
......@@ -19,14 +19,14 @@ buildscript {
google()
//壹点灵android maven私服 开发版
mave n{
maven{
url 'http://nexus.yidianling.com/repository/AndroidRepository/'
credentials {
username "admin"
password "fjoi#1+#@"
}
}
mave n{
maven{
url 'http://nexus.yidianling.com/repository/AndroidReleases/'
credentials {
username "admin"
......@@ -34,7 +34,7 @@ buildscript {
}
}
mave n{ url 'http://maven.aliyun.com/nexus/content/groups/public/ '}
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven {
url 'https://dl.bintray.com/zouyuhan/maven'
......@@ -65,21 +65,21 @@ buildscript {
allprojects {
repositories {
//壹点灵android maven私服 开发版
mave n{
maven{
url 'http://nexus.yidianling.com/repository/AndroidRepository/'
credentials {
username "admin"
password "fjoi#1+#@"
}
}
mave n{
maven{
url 'http://nexus.yidianling.com/repository/AndroidReleases/'
credentials {
username "admin"
password "fjoi#1+#@"
}
}
mave n{ url 'http://maven.aliyun.com/nexus/content/groups/public/ '}
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
// maven { url'http://developer.huawei.com/repo/' }
maven { url "https://jitpack.io" }
maven {
......
ext {
kotlin_version = "1.3.21"
dev_mode = false
dev_mode = true
ydl_app = [
appName : "心理咨询壹点灵",
......
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'plugin.resTools' // 资源重命名插件
// 配置资源重命名插件
resConfig {
new_prefix = 'im_' // 资源前缀
old_prefix = '' // 老前缀,可为''空字符串
}
kapt {
arguments {
arg("AROUTER_MODULE_NAME", "im")
}
}
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: "im"]
}
}
flavorDimensions "versionCode"//Flavor 维度信息
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
//前缀的名字
resourcePrefix "im_"
//Flavor 信息
publishNonDefault true
productFlavors {
ydl {}
xlzx {}
}
sourceSets {
main {
manifest.srcFile 'src/main/AndroidManifest.xml'
res.srcDirs = [
'src/main/res'
]
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
api fileTree(dir: 'libs', include: ['*.aar','*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
kapt 'com.alibaba:arouter-compiler:1.2.2'
implementation "org.jetbrains.kotlin:kotlin-script-runtime:1.3.41"
api rootProject.ext.dependencies["ydl-user-router"]
if (rootProject.ext.dev_mode){
//开发时使用
api project(':ydl-webview')
api project(':ydl-platform')
implementation modularPublication('com.ydl:m-user-api')
implementation modularPublication('com.ydl:m-audioim-api')
}else {
//发布时使用
compileOnly rootProject.ext.dependencies["ydl-m-user-api"]
compileOnly rootProject.ext.dependencies["ydl-m-audioim-api"]
api rootProject.ext.dependencies["ydl-webview"]
api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true
}
}
}
isApplicaiton = false
modular {
//模块包名
packageName "com.yidianling.im"
// 模块发布需要的参数
publish {
modules {
xlzx {
groupId = "com.ydl"
artifactId = "m-im-module-xlzx"
// 上报的 心理咨询 业务模块 aar 包的版本号
//version = rootProject.ext.ydlPublishVersion[childProject.getName()]
}
ydl{
groupId = "com.ydl"
artifactId = "m-im-module-ydl"
// 上报的 壹点灵 业务模块 aar 包的版本号
//version = rootProject.ext.ydlPublishVersion[childProject.getName()]
}
}
api {
//壹点灵/心理咨询 业务模块 API层 jar包的发布信息
groupId = "com.ydl"
artifactId = "m-im-api"
//开发时注释掉版本号,发布api时打开
//version = rootProject.ext.ydlPublishVersion[childProject.getName()+"-api"]
// 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'
implementation 'de.greenrobot:eventbus:2.4.0'
}
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.yidianling.im"
android:installLocation="auto">
<!-- 权限声明 -->
<!-- 访问网络状态-->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<!-- 控制呼吸灯,振动器等,用于新消息提醒 -->
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.VIBRATE" />
<!-- 外置存储存取权限 -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<!-- 多媒体相关 -->
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<!-- 如果需要实时音视频通话模块,下面的权限也是必须的。否则,可以不加 -->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
<!-- 8.0 系统上需要-->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<!-- SDK权限申明, 第三方APP接入时,请将com.yidianling.im替换为自己的包名 -->
<!-- 和下面的uses-permission一起加入到你的AndroidManifest文件中。 -->
<permission
android:name="${PACKAGE_NAME}.permission.RECEIVE_MSG"
android:protectionLevel="signature" />
<!-- 接受SDK消息广播权限, 第三方APP接入时,请将com.yidianling.im替换为自己的包名 -->
<uses-permission android:name="${PACKAGE_NAME}.permission.RECEIVE_MSG" />
<!--推送配置-->
<!-- 小米推送 -->
<!--<permission-->
<!--android:name="com.yidianling.im.permission.MIPUSH_RECEIVE"-->
<!--android:protectionLevel="signature" />-->
<!--<uses-permission android:name="com.yidianling.im.permission.MIPUSH_RECEIVE" />-->
<!--<uses-sdk tools:overrideLibrary="com.huawei.android.hms.base,com.huawei.android.hms.push" />-->
<!--&lt;!&ndash;魅族推送&ndash;&gt;-->
<!--&lt;!&ndash; 兼容flyme5.0以下版本,魅族内部集成pushSDK必填,不然无法收到消息&ndash;&gt;-->
<!--<uses-permission android:name="com.meizu.flyme.push.permission.RECEIVE" />-->
<!--<permission-->
<!--android:name="com.yidianling.im.push.permission.MESSAGE"-->
<!--android:protectionLevel="signature" />-->
<!--<uses-permission android:name="com.yidianling.im.push.permission.MESSAGE" />-->
<!--&lt;!&ndash; 兼容flyme3.0配置权限&ndash;&gt;-->
<!--<uses-permission android:name="com.meizu.c2dm.permission.RECEIVE" />-->
<!--<permission-->
<!--android:name="com.yidianling.im.permission.C2D_MESSAGE"-->
<!--android:protectionLevel="signature" />-->
<!--<uses-permission android:name="com.yidianling.im.permission.C2D_MESSAGE" />-->
<!--android:name="com.yidianling.im.NimApplication"-->
<application>
<meta-data
android:name="com.netease.nim.appKey"
android:value="4e258ba5cdf489fa188274ebf0fb5669" />
<!-- 全面屏配置 -->
<meta-data
android:name="android.max_aspect"
android:value="2.1" />
<activity android:name=".ui.activity.SystemMsgDetailActivity"
android:screenOrientation="portrait"/>
<activity android:name=".ui.activity.OtherMsgDetailActivity"
android:screenOrientation="portrait"/>
<!-- 云信 集成配置 -->
<!-- 声明云信后台服务 -->
<service
android:name="com.netease.nimlib.service.NimService"
android:process=":core" />
<!-- 运行后台辅助服务 -->
<service
android:name="com.netease.nimlib.service.NimService$Aux"
android:process=":core" />
<!-- 声明云信后台辅助服务 -->
<service
android:name="com.netease.nimlib.job.NIMJobService"
android:exported="true"
android:permission="android.permission.BIND_JOB_SERVICE"
android:process=":core" />
<!-- 云信SDK的监视系统启动和网络变化的广播接收器,用户开机自启动以及网络变化时候重新登录 -->
<receiver
android:name="com.netease.nimlib.service.NimReceiver"
android:exported="false"
android:process=":core">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<!-- 云信进程间通信receiver -->
<receiver android:name="com.netease.nimlib.service.ResponseReceiver" />
<!-- 云信进程间通信service -->
<service android:name="com.netease.nimlib.service.ResponseService" />
<!-- 云信进程间通信provider -->
<!-- android:authorities="{包名}.ipc.provider", 请将com.yidianling.im替换为自己的包名 -->
<provider
android:name="com.netease.nimlib.ipc.NIMContentProvider"
android:authorities="${PACKAGE_NAME}.ipc.provider"
android:exported="false"
android:process=":core" />
</application>
</manifest>
include ':app', ':ydl-flutter-base', ':ydl-net', ':ydl-utils', ':ydl-platform', ':ydl-webview', ':m-home', ':m-home',
':m-confide', ':m-audioim',':ydl-media',":m-user", ':m-consultant', ':m-muse',
':m-fm', ':m-tests',":m-course", ':ydl-pay'
include ':app',
':ydl-flutter-base', ':ydl-net', ':ydl-utils', ':ydl-media',
':ydl-platform', ':ydl-webview', ':ydl-pay', ':m-home',
':m-home', ':m-confide', ':m-audioim', ":m-user",
':m-consultant', ':m-muse', ':m-fm', ':m-tests', ":m-course",
":m-im"
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