Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Archer1347 committed Feb 10, 2022
1 parent 5969a95 commit b8c48a3
Show file tree
Hide file tree
Showing 40 changed files with 75 additions and 64 deletions.
19 changes: 12 additions & 7 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ dependencies {

implementation project(':modulea')
implementation project(':moduleb')
implementation project(':Scheme')
kapt project(':Processor')
implementation project(':scheme')
kapt project(':scheme-compiler')
}
4 changes: 2 additions & 2 deletions app/src/main/java/com/archer/scheme/demo/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import android.os.Handler
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.NotificationCompat
import com.archer.scheme.SchemeManager
import com.archer.scheme.annotation.SchemePath
import com.scheme.core.SchemeManager
import com.scheme.annotation.SchemePath
import kotlinx.android.synthetic.main.activity_main.*

@SchemePath("Main/Activity")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.archer.scheme.demo

import android.app.Application
import com.archer.scheme.SchemeManager
import com.scheme.core.SchemeManager

/**
* Created by ljq on 2020/7/14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.util.Log
import com.archer.scheme.SchemeManager
import com.scheme.core.SchemeManager

class StartUpActivity : Activity() {

Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ buildscript {
repositories {
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -18,6 +20,7 @@ allprojects {
repositories {
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}

Expand Down
4 changes: 2 additions & 2 deletions modulea/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

implementation project(':Scheme')
kapt project(':Processor')
implementation project(':scheme')
kapt project(':scheme-compiler')

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ package com.archer.scheme.modulea
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.archer.scheme.SchemeManager
import com.archer.scheme.annotation.SchemeExtra
import com.archer.scheme.annotation.SchemePath
import com.archer.scheme.modulea.R
import com.scheme.core.SchemeManager
import com.scheme.annotation.SchemeExtra
import com.scheme.annotation.SchemePath
import kotlinx.android.synthetic.main.activity_module1.*

@SchemePath("ModuleA/Activity")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ package com.archer.scheme.modulea
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.archer.scheme.SchemeManager
import com.archer.scheme.annotation.SchemeExtra
import com.archer.scheme.annotation.SchemePath
import com.archer.scheme.modulea.R
import com.scheme.core.SchemeManager
import com.scheme.annotation.SchemeExtra
import com.scheme.annotation.SchemePath
import kotlinx.android.synthetic.main.activity_module2.*

@SchemePath("ModuleA/Activity2")
Expand Down
4 changes: 2 additions & 2 deletions moduleb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

implementation project(':Scheme')
kapt project(':Processor')
implementation project(':scheme')
kapt project(':scheme-compiler')

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ package com.archer.scheme.moduleb
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.archer.scheme.SchemeManager
import com.archer.scheme.annotation.SchemeExtra
import com.archer.scheme.annotation.SchemePath
import com.archer.scheme.moduleb.R
import com.scheme.core.SchemeManager
import com.scheme.annotation.SchemeExtra
import com.scheme.annotation.SchemePath

@SchemePath("ModuleB/Activity")
class ModuleBActivity : AppCompatActivity() {
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions annotation/build.gradle → scheme-annotation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'java-library'
apply plugin: 'com.github.dcendents.android-maven'

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.archer.scheme.annotation;
package com.scheme.annotation;

/**
* uri参数解析及activity参数注入
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.archer.scheme.annotation;
package com.scheme.annotation;

/**
* activity路由
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.archer.scheme.annotation;
package com.scheme.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.archer.scheme.annotation;
package com.scheme.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion Processor/build.gradle → scheme-compiler/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'java-library'
apply plugin: 'com.github.dcendents.android-maven'

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
Expand All @@ -12,7 +13,7 @@ dependencies {

implementation 'org.apache.commons:commons-lang3:3.4'

implementation project(':annotation')
implementation project(':scheme-annotation')

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Consts {
/**
* 注解依赖的包名
*/
static final String ANNOTATION_PACKAGE = "com.archer.scheme.annotation";
static final String ANNOTATION_PACKAGE = "com.scheme.annotation";
/**
* 路由注解类全路径
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.TypeSpec;
import com.archer.scheme.annotation.IExtraProvider;
import com.archer.scheme.annotation.SchemeExtra;
import com.scheme.annotation.IExtraProvider;
import com.scheme.annotation.SchemeExtra;

import java.io.IOException;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.TypeSpec;
import com.archer.scheme.annotation.ISchemeProvider;
import com.archer.scheme.annotation.SchemePath;
import com.scheme.annotation.ISchemeProvider;
import com.scheme.annotation.SchemePath;

import java.io.IOException;
import java.util.Set;
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion Scheme/build.gradle → scheme/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.github.dcendents.android-maven'

android {
compileSdkVersion 29
Expand Down Expand Up @@ -33,5 +34,5 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

api project(':annotation')
api project(':scheme-annotation')
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.archer.scheme">
package="com.scheme.core">

</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.archer.scheme
package com.scheme.core

import android.app.Activity
import android.os.Bundle
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.archer.scheme
package com.scheme.core

import android.app.Activity
import android.app.ActivityManager
Expand All @@ -9,8 +9,8 @@ import android.content.pm.PackageManager
import android.net.Uri
import android.text.TextUtils
import android.util.Log
import com.archer.scheme.annotation.IExtraProvider
import com.archer.scheme.annotation.ISchemeProvider
import com.scheme.annotation.IExtraProvider
import com.scheme.annotation.ISchemeProvider
import java.lang.Exception
import java.lang.IllegalArgumentException

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include ':modulea'
include ':moduleb'
include ':Scheme'
include ':Processor'
include ':annotation'
include ':scheme'
include ':scheme-compiler'
include ':scheme-annotation'
include ':app'
rootProject.name = "SchemeDemo"

0 comments on commit b8c48a3

Please sign in to comment.