Xingefb / meiqiachat

测试客服接入
MIT License
4 stars 1 forks source link

Migrate to AndroidX #1

Open juliocbcotta opened 5 years ago

juliocbcotta commented 5 years ago

Hey, how about to migrate to AndroidX libraries?

Xingefb commented 5 years ago

add this code to gradle.properties android.useAndroidX=true android.enableJetifier=true

juliocbcotta commented 5 years ago

Hello @Xingefb , that won't do. Jetfier only works in aars and jar files. Your plugin is delivered as a gradle module to the client developer, that is why I asked to migrate this plugin to AndroidX.

Xingefb commented 5 years ago

@BugsBunnyBR can you say chinese ? 可以说中文吗?英文比较水,翻译我怕有失误的地方,至于迁移的话应该是在插件上配置androidx 的对应文件

juliocbcotta commented 5 years ago

English: Jetfier only works in aar and jar files. The developer using this plugin receives it as source code, so Jetfier does not work. That is why we need to migrate this plugin to AndroidX.

Chinese Google translator Jetfier仅适用于aar和jar文件。 使用此插件的开发人员将其作为源代码接收,因此Jetfier不起作用。 这就是我们需要将此插件迁移到AndroidX的原因。

Xingefb commented 5 years ago

@BugsBunnyBR group 'com.kefu.ding.meiqiachat' version '1.0-SNAPSHOT'

buildscript { repositories { google() jcenter() }

dependencies {
    classpath 'com.android.tools.build:gradle:3.4.2'
}

}

rootProject.allprojects { repositories { google() jcenter() } }

apply plugin: 'com.android.library'

android { compileSdkVersion 28

defaultConfig {
    minSdkVersion 16
    targetSdkVersion 28
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    // testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
lintOptions {
    disable 'InvalidPackage'
}
buildToolsVersion = '28.0.3'

}

dependencies { androidTestImplementation 'androidx.test:runner:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'

implementation 'com.meiqia:meiqiasdk:3.5.8'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.squareup.okhttp3:okhttp:4.1.0'

implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'

} this can fit

juliocbcotta commented 5 years ago

This library is the problem.

implementation 'com.android.support:support-v4:28.0.0'

I opened this PR to you https://github.com/Xingefb/meiqiachat/pull/2