Skip to content

Commit

Permalink
v1.2.0 统一各个库依赖版本
Browse files Browse the repository at this point in the history
  • Loading branch information
jixiaoyong committed Nov 2, 2019
1 parent 5dc39df commit 936c950
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ android:
- build-tools-28.0.3

# The SDK version used to compile your project
- android-26
- android-28

# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-26
- extra-android-m2repository
- addon-google_apis-google-28

# Specify at least one system image,
# if you need to run emulator(s) during your tests
Expand Down
3 changes: 3 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/build
/WanAndroid/
/release/
/beta/
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ static def releaseTime() {
}

android {
compileSdkVersion 28
compileSdkVersion rootProject.targetSdkVersion
buildToolsVersion '28.0.3'

defaultConfig {
applicationId "cf.android666.wanandroid"
minSdkVersion 21
targetSdkVersion 28
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion
versionCode Integer.parseInt(releaseTime())
versionName "1.2.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
13 changes: 0 additions & 13 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,15 @@
<uses-permission android:name="android.permission.INTERNET" />

<!--以下是友盟SDK需要的权限-->
<!-- 必须的权限 -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />

<!-- 推荐的权限 -->
<!-- 添加如下权限,以便使用更多的第三方SDK和更精准的统计数据 -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<!--bugly-->
<!--<uses-permission android:name="android.permission.READ_PHONE_STATE" />-->
<!--<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.READ_LOGS" />-->
<!--bugly update-->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<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.READ_LOGS" />
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
buildscript {
ext {
kotlin_version = '1.3.50'
targetSdkVersion = 28
minSdkVersion = 21
}

repositories {
Expand Down
14 changes: 6 additions & 8 deletions mylibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 26

compileSdkVersion rootProject.targetSdkVersion

defaultConfig {
minSdkVersion 21
targetSdkVersion 26
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion
versionCode 2
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

}

lintOptions{
lintOptions {
//停止lint在build时检查
abortOnError false
}
Expand All @@ -37,10 +35,10 @@ android {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.recyclerview:recyclerview:1.0.0'
}
Expand Down

0 comments on commit 936c950

Please sign in to comment.