Skip to content

Commit

Permalink
update gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyue404 committed Dec 17, 2022
1 parent e26eab7 commit 537b9fe
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 34 deletions.
10 changes: 4 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'org.jetbrains.kotlin.android'
}

android {
namespace 'com.chenyue404.activitylog'
compileSdkVersion 32
buildToolsVersion "30.0.0"

defaultConfig {
applicationId "com.chenyue404.activitylog"
Expand Down Expand Up @@ -50,17 +50,15 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
jvmTarget = '1.8'
}
namespace 'com.chenyue404.activitylog'
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.8.0'
compileOnly 'de.robv.android.xposed:api:82'
compileOnly 'de.robv.android.xposed:api:82:sources'
Expand Down
32 changes: 4 additions & 28 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.7.10"
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }//central仓和jcenter仓的聚合仓
maven { url 'https://maven.aliyun.com/repository/google' }//https://maven.google.com/
// google()
// jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }//central仓和jcenter仓的聚合仓
maven { url 'https://maven.aliyun.com/repository/google' }//https://maven.google.com/
// google()
// jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
plugins {
id 'com.android.application' version '7.3.0' apply false
id 'com.android.library' version '7.3.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
}
18 changes: 18 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
pluginManagement {
repositories {
gradlePluginPortal()
maven { url 'https://maven.aliyun.com/repository/public' }//central仓和jcenter仓的聚合仓
maven { url 'https://maven.aliyun.com/repository/google' }//https://maven.google.com/
// google()
// mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }//central仓和jcenter仓的聚合仓
maven { url 'https://maven.aliyun.com/repository/google' }//https://maven.google.com/
// google()
// mavenCentral()
}
}
include ':app'
rootProject.name = "ActivityLog"

0 comments on commit 537b9fe

Please sign in to comment.