Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SummerRock committed Apr 10, 2024
1 parent e656e72 commit 7a8b9f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
apply plugin: 'com.android.application' // 引入 android gradle 插件
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
plugins {
id 'com.android.application'
// id 'com.archinamon.aspectj'
id 'kotlin-android'
id 'kotlin-kapt'
id 'com.facebook.react'
}
apply from: this.project.file('../config.gradle')
apply plugin: "com.facebook.react"

android { // 配置 android gradle plugin 需要的内容
compileSdkVersion this.project.ext.compileSdkVersion
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ buildscript { // 配置脚本的 classpath

ext.kotlin_version = '1.7.10' // 替换成你希望使用的 Kotlin 版本
repositories { // 项目的仓库地址,会按顺序依次查找
mavenCentral()
google()
jcenter()
mavenCentral()
}
dependencies { // 项目的依赖
classpath 'com.android.tools.build:gradle:8.0.1'
Expand All @@ -31,9 +31,9 @@ allprojects { // 子项目的配置
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
mavenCentral()
google()
jcenter()
mavenCentral()
}
}

Expand Down

0 comments on commit 7a8b9f3

Please sign in to comment.