Skip to content

Commit

Permalink
升级版本号1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao authored and zhangtao committed Nov 27, 2024
1 parent d08f836 commit 10be70a
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 33 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ TheRouter core functions have four functionalities:

|module| apt | router | plugin |
|---|----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|
|version| [![apt](https://img.shields.io/badge/apt-1.2.2-green)](https://repo1.maven.org/maven2/cn/therouter/apt/) | [![router](https://img.shields.io/badge/router-1.2.2-green)](https://repo1.maven.org/maven2/cn/therouter/router/) | [![plugin](https://img.shields.io/badge/plugin-1.2.2-green)](https://repo1.maven.org/maven2/cn/therouter/plugin/) |
|version| [![apt](https://img.shields.io/badge/apt-1.2.3-green)](https://repo1.maven.org/maven2/cn/therouter/apt/) | [![router](https://img.shields.io/badge/router-1.2.3-green)](https://repo1.maven.org/maven2/cn/therouter/router/) | [![plugin](https://img.shields.io/badge/plugin-1.2.3-green)](https://repo1.maven.org/maven2/cn/therouter/plugin/) |

```
// root build.gradle
classpath 'cn.therouter:plugin:1.2.2'
classpath 'cn.therouter:plugin:1.2.3'
// app module
apply plugin: 'therouter'
// dependencies
kapt "cn.therouter:apt:1.2.2"
implementation "cn.therouter:router:1.2.2"
kapt "cn.therouter:apt:1.2.3"
implementation "cn.therouter:router:1.2.3"
```

#### B2. initialization library
Expand Down
8 changes: 4 additions & 4 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ TheRouter 具备四大能力:

|module| apt | router | plugin |
|---|---------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|
|version| [![apt](https://img.shields.io/badge/apt-1.2.2-green)](https://repo1.maven.org/maven2/cn/therouter/apt) | [![router](https://img.shields.io/badge/router-1.2.2-green)](https://repo1.maven.org/maven2/cn/therouter/router) | [![plugin](https://img.shields.io/badge/plugin-1.2.2-green)](https://repo1.maven.org/maven2/cn/therouter/plugin) |
|version| [![apt](https://img.shields.io/badge/apt-1.2.3-green)](https://repo1.maven.org/maven2/cn/therouter/apt) | [![router](https://img.shields.io/badge/router-1.2.3-green)](https://repo1.maven.org/maven2/cn/therouter/router) | [![plugin](https://img.shields.io/badge/plugin-1.2.3-green)](https://repo1.maven.org/maven2/cn/therouter/plugin) |

```
// 项目根目录 build.gradle 引入
classpath 'cn.therouter:plugin:1.2.2'
classpath 'cn.therouter:plugin:1.2.3'
// app module 中引入
apply plugin: 'therouter'
// 依赖,所有使用了注解的模块都要添加
kapt "cn.therouter:apt:1.2.2"
implementation "cn.therouter:router:1.2.2"
kapt "cn.therouter:apt:1.2.3"
implementation "cn.therouter:router:1.2.3"
```

#### 2.2 初始化
Expand Down
2 changes: 1 addition & 1 deletion apt/src/main/java/com/therouter/apt/BuildConfig.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.therouter.apt;

public final class BuildConfig {
public static final String VERSION = "1.2.3-rc17";
public static final String VERSION = "1.2.3";
public static final String NAME = "apt";

public static final boolean DEBUG = false;
Expand Down
8 changes: 2 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
buildscript {
ext.kotlin_version = '1.9.21'
repositories {
maven { url 'https://nas.therouter.cn:8443/repository/maven-public/' }
google()
mavenCentral()
maven { url 'https://maven.therouter.cn:8443/repository/maven-public/' }
maven { url 'https://s01.oss.sonatype.org/content/groups/staging/' }
}
dependencies {
Expand All @@ -19,9 +17,7 @@ buildscript {
allprojects {
apply from: "${project.getRootDir()}/therouter.gradle"
repositories {
maven { url 'https://nas.therouter.cn:8443/repository/maven-public/' }
google()
mavenCentral()
maven { url 'https://maven.therouter.cn:8443/repository/maven-public/' }
maven { url 'https://s01.oss.sonatype.org/content/groups/staging/' }
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ ksp.incremental=true
ksp.incremental.log=true
ksp.incremental.intermodule=true

TheRouterVersion=1.2.3-rc14
TheRouterVersion=1.2.3-rc17
gradle8=false
5 changes: 1 addition & 4 deletions plugin-agp8/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ gradlePlugin {
}

repositories {
maven { url 'https://nas.therouter.cn:8443/repository/maven-public/' }
mavenCentral()
google()
gradlePluginPortal()
maven { url 'https://maven.therouter.cn:8443/repository/maven-public/' }
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.therouter.plugin;

public final class BuildConfig {
public static final String VERSION = "1.2.3-rc17";
public static final String VERSION = "1.2.3";
public static final String NAME = "plugin";

private BuildConfig() {
Expand Down
4 changes: 1 addition & 3 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ dependencies {
}

repositories {
maven { url 'https://nas.therouter.cn:8443/repository/maven-public/' }
mavenCentral()
google()
maven { url 'https://maven.therouter.cn:8443/repository/maven-public/' }
}

task sourcesJar(type: Jar) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.therouter.plugin;

public final class BuildConfig {
public static final String VERSION = "1.2.3-rc17";
public static final String VERSION = "1.2.3";
public static final String NAME = "plugin";

private BuildConfig() {
Expand Down
10 changes: 2 additions & 8 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@ if (Boolean.valueOf(gradle8)) {
rootProject.buildFileName = "agp8-build.gradle"
pluginManagement {
repositories {
maven { url 'https://nas.therouter.cn:8443/repository/maven-public/' }
gradlePluginPortal()
google()
mavenCentral()
maven { url 'https://maven.therouter.cn:8443/repository/maven-public/' }
maven { url 'https://s01.oss.sonatype.org/content/groups/staging/' }
maven { url 'https://plugins.gradle.org/m2/' }
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
maven { url 'https://nas.therouter.cn:8443/repository/maven-public/' }
google()
mavenCentral()
maven { url 'https://maven.therouter.cn:8443/repository/maven-public/' }
maven { url 'https://s01.oss.sonatype.org/content/groups/staging/' }
}
}
Expand Down

0 comments on commit 10be70a

Please sign in to comment.