Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: drakeet/Floo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.1.0
Choose a base ref
...
head repository: drakeet/Floo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 6 commits
  • 48 files changed
  • 1 contributor

Commits on Apr 28, 2019

  1. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    c7eadbc View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    5ba5e43 View commit details
  3. Update code styles

    drakeet committed Apr 28, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    80ebd71 View commit details
  4. Modify package name to com.drakeet.floo

    versionName "1.2.0"
    drakeet committed Apr 28, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    9c3d35d View commit details
  5. Update maven usage

    drakeet committed Apr 28, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    a7d1c59 View commit details
  6. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    013b62e View commit details
Showing with 1,507 additions and 1,883 deletions.
  1. +9 −5 README.md
  2. +0 −194 README_CN.md
  3. +12 −10 build.gradle
  4. +2 −5 gradle.properties
  5. +2 −17 gradle/wrapper/gradle-wrapper.properties
  6. +14 −18 library/build.gradle
  7. +0 −20 library/checkstyle.gradle
  8. +77 −79 library/gradle-mvn-push.gradle
  9. +3 −3 library/gradle.properties
  10. +0 −1 library/proguard-rules.pro
  11. +15 −21 library/src/main/java/me/drakeet/floo/ActivityOnResumeCallback.java
  12. +25 −31 library/src/main/java/me/drakeet/floo/Chain.java
  13. +108 −123 library/src/main/java/me/drakeet/floo/Configuration.java
  14. +5 −5 library/src/main/java/me/drakeet/floo/DefaultIntentHandler.java
  15. +484 −526 library/src/main/java/me/drakeet/floo/Floo.java
  16. +8 −8 library/src/main/java/me/drakeet/floo/IntentHandler.java
  17. +2 −2 library/src/main/java/me/drakeet/floo/IntentReceiver.java
  18. +2 −2 library/src/main/java/me/drakeet/floo/Interceptor.java
  19. +4 −4 library/src/main/java/me/drakeet/floo/InvalidJsonException.java
  20. +26 −26 library/src/main/java/me/drakeet/floo/Navigation.java
  21. +9 −10 library/src/main/java/me/drakeet/floo/Preconditions.java
  22. +31 −36 library/src/main/java/me/drakeet/floo/Stack.java
  23. +3 −3 library/src/main/java/me/drakeet/floo/StackCallback.java
  24. +84 −100 library/src/main/java/me/drakeet/floo/StackManager.java
  25. +14 −16 library/src/main/java/me/drakeet/floo/StackStates.java
  26. +24 −31 library/src/main/java/me/drakeet/floo/Target.java
  27. +18 −22 library/src/main/java/me/drakeet/floo/TargetMap.java
  28. +68 −74 library/src/main/java/me/drakeet/floo/TargetMapParser.java
  29. +18 −18 library/src/main/java/me/drakeet/floo/TargetNotFoundHandler.java
  30. +20 −23 library/src/main/java/me/drakeet/floo/Urls.java
  31. +10 −12 library/src/main/java/me/drakeet/floo/extensions/LogInterceptor.java
  32. +20 −20 library/src/main/java/me/drakeet/floo/extensions/OpenDirectlyHandler.java
  33. +42 −44 sample/build.gradle
  34. +2 −1 sample/src/main/AndroidManifest.xml
  35. +36 −38 sample/src/main/java/me/drakeet/floo/sample/App.java
  36. +64 −70 sample/src/main/java/me/drakeet/floo/sample/ContainerActivity.java
  37. +91 −102 sample/src/main/java/me/drakeet/floo/sample/MainActivity.java
  38. +7 −6 sample/src/main/java/me/drakeet/floo/sample/NotRegisteredActivity.java
  39. +28 −29 sample/src/main/java/me/drakeet/floo/sample/TargetActivity.java
  40. +11 −11 sample/src/main/java/me/drakeet/floo/sample/TargetNotFoundToaster.java
  41. +8 −9 sample/src/main/java/me/drakeet/floo/sample/URLs.java
  42. +45 −47 sample/src/main/java/me/drakeet/floo/sample/WebActivity.java
  43. +18 −18 sample/src/main/java/me/drakeet/floo/sample/WebHandler.java
  44. +32 −39 sample/src/main/java/me/drakeet/floo/sample/entity/Mail.java
  45. +1 −1 sample/src/main/res/layout/activity_container.xml
  46. +2 −1 sample/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
  47. +2 −1 sample/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
  48. +1 −1 sample/src/main/res/values/ic_launcher_background.xml
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -4,8 +4,6 @@
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/drakeet/Floo/blob/master/LICENSE)
![maven-central](https://img.shields.io/maven-central/v/me.drakeet.floo/floo.svg)

English Version | [中文版](README_CN.md)

An URL router supporting AOP, stack control, cross-page message, and dynamic routing.

<a href='https://play.google.com/store/apps/details?id=me.drakeet.floo.sample&utm_source=global_co&utm_medium=prtnr&utm_content=Mar2515&utm_campaign=PartBadge&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get sample on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png' width=200 height=77/></a>
@@ -16,15 +14,15 @@ In your `build.gradle`:

```groovy
dependencies {
compile 'me.drakeet.floo:floo:1.1.0'
implementation 'me.drakeet.floo:floo:1.2.0'
}
```

If you are using `com.android.tools.build:gradle:3.+`, use this instead:
Floo has been rebuilt based on AndroidX. If you are still using the android support library, please use:

```groovy
dependencies {
implementation 'me.drakeet.floo:floo:1.1.0'
implementation 'me.drakeet.floo:floo:1.1.0'
}
```

@@ -170,6 +168,12 @@ public interface StackStates {
}
```

## Progurad

```
-keep class com.drakeet.floo.Target { *; }
```

## Some built-in extensions

- `LogInterceptor`
194 changes: 0 additions & 194 deletions README_CN.md

This file was deleted.

22 changes: 12 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -15,20 +15,22 @@
*/

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'
}
}

allprojects {
repositories {
jcenter()
}
repositories {
google()
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
delete rootProject.buildDir
}
7 changes: 2 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -13,20 +13,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
android.enableJetifier=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536m

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
19 changes: 2 additions & 17 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
#
# Copyright 2017 drakeet. https://github.com/drakeet
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#Sun Apr 28 13:51:19 CST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
32 changes: 14 additions & 18 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -16,30 +16,26 @@

apply plugin: 'com.android.library'
apply from: 'gradle-mvn-push.gradle'
apply from: 'checkstyle.gradle'

android {
compileSdkVersion 25
buildToolsVersion '26.0.1'
compileSdkVersion 28

defaultConfig {
minSdkVersion 9
targetSdkVersion 25
versionCode 7
versionName "1.0.5"
}
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 12
versionName "1.2.0"
}

buildTypes {
release {
minifyEnabled false
consumerProguardFile 'proguard-rules.pro'
}
buildTypes {
release {
minifyEnabled false
consumerProguardFile 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'

compile 'com.android.support:support-annotations:25.3.1'
testImplementation 'junit:junit:4.12'
implementation 'androidx.annotation:annotation:1.0.2'
}
20 changes: 0 additions & 20 deletions library/checkstyle.gradle

This file was deleted.

Loading