build.gradle 2.83 KB
Newer Older
weijiguang committed
1 2 3 4 5 6 7 8 9 10
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.3"
    defaultConfig {
        applicationId "com.ihaoin.hooloo.device"
wjg committed
11
        minSdkVersion 26
weijiguang committed
12 13 14
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"
wjg committed
15 16 17 18 19 20 21 22

        ndk {
            //选择要添加的对应 cpu 类型的 .so 库。
            abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a'
            // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
        }
        manifestPlaceholders = [
            JPUSH_PKGNAME : applicationId,
23
            JPUSH_APPKEY : "59c9290134b359212290c075", //JPush 上注册的包名对应的 Appkey.
wjg committed
24 25
            JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
        ]
weijiguang committed
26 27 28 29 30 31 32
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
wjg committed
33 34 35 36 37 38 39 40 41
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    repositories {
        flatDir {
            dirs 'libs'
        }
    }
weijiguang committed
42 43 44
}

dependencies {
wjg committed
45
    implementation fileTree(dir: 'libs', include: ['*.jar',"*.aar"])
weijiguang committed
46
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
wjg committed
47
    implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.34'
weijiguang committed
48 49 50 51 52 53
    implementation 'com.google.android.material:material:1.2.1'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'com.kyleduo.switchbutton:library:2.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.2.1'
    implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
wjg committed
54
    implementation 'com.github.bumptech.glide:glide:4.9.0'
weijiguang committed
55 56 57
    implementation 'com.squareup.okhttp3:okhttp:3.5.0'

    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
wjg committed
58

wjg committed
59 60 61 62
//    implementation 'com.alibaba:fastjson:2.0.2.android'
    implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.0.pr3'
    implementation 'com.fasterxml.jackson.core:jackson-core:2.9.0.pr3'
    implementation 'com.fasterxml.jackson.core:jackson-annotations:2.9.0.pr3'
wjg committed
63 64 65 66

    implementation 'com.aliyun.alink.linksdk:iot-linkkit:1.7.2'
    implementation 'com.aliyun.alink.linksdk:public-channel-core:0.7.7.1'
    implementation 'com.aliyun.alink.linksdk:iot-device-manager:1.7.5.0'
wjg committed
67
    implementation 'com.google.zxing:core:3.3.0'
wjg committed
68 69 70

    // 引入极光 SDK
    implementation project(':library_jiguang')
wjg committed
71 72 73 74

    implementation  'com.umeng.umsdk:common:9.5.0'// 版本号(必选)
    implementation  'com.umeng.umsdk:asms:1.6.3'// asms包依赖(必选)
    implementation 'com.umeng.umsdk:apm:1.6.2'// U-APM产品包依赖(必选)
wjg committed
75
}