Skip to content

Commit

Permalink
升级编译环境,解决导致其他库打包失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hss01248 committed May 30, 2024
1 parent e38d46c commit fa9b868
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 22 deletions.
19 changes: 9 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 32
compileSdkVersion 34
buildToolsVersion '30.0.0'

defaultConfig {
applicationId "com.hss01248.dialogutildemo"
minSdkVersion 19
targetSdkVersion 32
minSdkVersion 23
targetSdkVersion 34
versionCode 1
versionName "1.0"
multiDexEnabled true
Expand Down Expand Up @@ -40,26 +40,25 @@ repositories {
};

maven {
url "http://dl.bintray.com/lukaville/maven"
url "https://dl.bintray.com/lukaville/maven"
}


/* maven { url "http://dl.bintray.com/dodola/maven" }*/
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'

implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
compile 'com.jakewharton:butterknife:10.2.1'
implementation 'com.jakewharton:butterknife:10.2.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
//compile 'com.github.rubensousa:BottomSheetBuilder:1.3'
compile project(path: ':dialog')
implementation project(path: ':dialog')
//debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
// releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
compile 'com.github.hss01248:Mylog:1.0.1'
compile 'com.alibaba:fastjson:1.1.54.android'
implementation 'com.github.hss01248:Mylog:1.0.1'
implementation 'com.alibaba:fastjson:1.1.54.android'
}

configurations {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
android:supportsRtl="true"
android:name=".BaseApp"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity android:name=".MainActivity" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: 'https://raw.githubusercontent.com/hss01248/flipperUtil/dev/remote3.gradle'
apply from: 'https://raw.githubusercontent.com/hss01248/flipperUtil/master/deps/depsLastestChecker.gradle'
apply from: 'https://raw.githubusercontent.com/hss01248/flipperUtil/dev/z_config/git_branch_info.gradle'
apply from: 'https://raw.githubusercontent.com/hss01248/flipperUtil/gradle7_5/remote3.gradle'
apply from: 'https://raw.githubusercontent.com/hss01248/flipperUtil/gradle7_5/deps/depsLastestChecker.gradle'
apply from: 'https://raw.githubusercontent.com/hss01248/flipperUtil/gradle7_5/z_config/git_branch_info.gradle'

dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:7.1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
9 changes: 4 additions & 5 deletions dialog/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 32
compileSdkVersion 34
resourcePrefix "dialogutil_"

defaultConfig {
minSdkVersion 16
targetSdkVersion 32
minSdkVersion 23
targetSdkVersion 34
versionCode 1
versionName "1.0"
}
Expand Down Expand Up @@ -39,8 +39,7 @@ repositories {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'

implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
Expand Down
2 changes: 1 addition & 1 deletion dialog/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<style name="Dialog.FullScreen" parent="Theme.AppCompat.Light.Dialog">
<!--Theme.AppCompat.Dialog-->
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">#FFFFFF</item>
<item name="android:windowBackground">@color/cardBodyColor</item>
<item name="android:windowIsFloating">false</item>
</style>

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip

0 comments on commit fa9b868

Please sign in to comment.