Skip to content

Commit

Permalink
feat:「重构代码」
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinaLike committed Apr 17, 2024
1 parent 6b7b98e commit 2a75ed1
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 30 deletions.
7 changes: 2 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ android {
}

buildTypes {
debug{
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
Expand Down Expand Up @@ -52,7 +52,6 @@ dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation project(path: ':jsbridge')
implementation project(path: ':testGroup')
// implementation 'com.github.ChinaLike:JsBridge:0.0.9'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
Expand All @@ -63,9 +62,7 @@ dependencies {
implementation 'com.geyifeng.immersionbar:immersionbar:3.2.2'
implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.2'

implementation 'com.github.ChinaLike:jsbridge:0.1.0'
// kapt project(':jsbridge-compiler')
// implementation project(':library-annotation')
kapt project(':jsbridge-compiler')

implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
28 changes: 17 additions & 11 deletions jsbridge-annotation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,30 @@ plugins {
id("java-library")
id("org.jetbrains.kotlin.jvm")
id("maven")
id 'maven-publish'
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

withSourcesJar()
withJavadocJar()
}

//==============================JitPack 上传插件配置 start=====================
apply plugin: 'com.github.dcendents.android-maven'
//组名 com.github是固定的,后面的ChinaLike是我Github的用户名,替换成你自己的就可以了
group='com.github.ChinaLike'
version='0.1.1'

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.java
groupId = 'com.github.ChinaLike'
artifactId = 'jsbridge-annotation'
version = '0.1.1'
}
}
}
}
//==============================JitPack 上传插件配置 end=======================
}
28 changes: 16 additions & 12 deletions jsbridge-compiler/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins {
id("java-library")
id("org.jetbrains.kotlin.jvm")
id("maven")
id 'maven-publish'
}

java {
Expand All @@ -9,8 +11,7 @@ java {
}

dependencies{
// implementation(project(":jsbridge-annotation"))
implementation 'com.github.ChinaLike:jsbridge-annotation:0.1.0'
implementation(project(":jsbridge-annotation"))

annotationProcessor("com.google.auto.service:auto-service:1.0-rc7")
compileOnly("com.google.auto.service:auto-service-annotations:1.0-rc7")
Expand All @@ -20,17 +21,20 @@ dependencies{
implementation("com.alibaba:fastjson:1.2.69")
}

//==============================JitPack 上传插件配置 start=====================
apply plugin: 'com.github.dcendents.android-maven'
//组名 com.github是固定的,后面的ChinaLike是我Github的用户名,替换成你自己的就可以了
group='com.github.ChinaLike'
version='0.1.1'

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.java
groupId = 'com.github.ChinaLike'
artifactId = 'jsbridge-compiler'
version = '0.1.1'
}
}
}
}
//==============================JitPack 上传插件配置 end=======================

4 changes: 2 additions & 2 deletions jsbridge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'com.alibaba:fastjson:1.1.72.android'
// api project(':jsbridge-annotation')
api 'com.github.ChinaLike:jsbridge-annotation:0.1.0'
api project(':jsbridge-annotation')
// api 'com.github.ChinaLike:jsbridge-annotation:0.1.0'
}

//==============================JitPack 上传插件配置 start=====================
Expand Down

0 comments on commit 2a75ed1

Please sign in to comment.