Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

android / dayu

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dayu
  • learnCenter
  • build.gradle
Find file
Normal viewHistoryPermalink
build.gradle 2.27 KB
Newer Older
mReturn's avatar
添加学习模块
ed6ea768
 
mReturn committed 5 years ago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
if (isLearnModule.toBoolean()) {
    apply plugin: 'com.android.library'
} else {
    apply plugin: 'com.android.application'
}

android {
    compileSdkVersion compile_sdk_version
    buildToolsVersion build_tools_version

    defaultConfig {
        minSdkVersion min_sdk_version
        targetSdkVersion target_sdk_version
        versionCode version_code
        versionName verson_name
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
        vectorDrawables.useSupportLibrary = true

        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [moduleName: project.getName()]
            }
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    buildTypes {
        release {
            minifyEnabled isReleaseMinify
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    dataBinding {
        enabled = true
    }

    dexOptions {
        preDexLibraries = false
    }

    sourceSets {
        main {
            if (isLearnModule.toBoolean()) {
                manifest.srcFile 'src/main/release/AndroidManifest.xml'
            } else {
                manifest.srcFile 'src/main/debug/AndroidManifest.xml'
            }
        }
    }
}

dependencies {
    api fileTree(dir: 'libs', include: ['*.jar'])

    //ARouter
    annotationProcessor "com.alibaba:arouter-compiler:$arouter_compiler_version"
    api project(':provider')
mReturn's avatar
接入直播
b8338b29
 
mReturn committed 4 years ago
64 65
    api project(':liveModule')

luofan's avatar
提交代码
87e8465e
 
luofan committed 2 years ago
66 67 68 69 70 71 72 73 74 75 76 77
    // 友盟基础组件库(所有友盟业务SDK都依赖基础组件库)
    implementation  'com.umeng.umsdk:common:9.5.2'// (必选)
    implementation  'com.umeng.umsdk:asms:1.6.3'// 必选

    implementation  'com.umeng.umsdk:share-core:7.2.0'//分享核心库,必选
    implementation  'com.umeng.umsdk:share-board:7.2.0'//分享面板功能,可选

    //在线依赖目前支持QQ、微信、新浪微博、支付宝、钉钉;若需支持其他平台,请选择手动下载SDK

    implementation 'com.umeng.umsdk:share-wx:7.1.9' //微信完整版
    implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.7.9'//微信官方依赖库,必选

mReturn's avatar
添加学习模块
ed6ea768
 
mReturn committed 5 years ago
78
}