Skip to content

Commit

Permalink
Merge pull request #7 from Manabu-GT/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Manabu-GT authored Apr 5, 2017
2 parents fed8940 + 8c7a0d0 commit 50d626d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 16 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Change Log

## Version 1.0.1 *(2017-04-05)*

* Use split v4 support library as dependencies for less size
* Support Library 25.3.0 -> 25.3.1

## Version 1.0.0 *(2017-04-04)*

Initial release.
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ so you just need to add the followings to your ***build.gradle*** file:

```groovy
dependencies {
debugCompile 'com.ms-square:debugoverlay:1.0.0'
releaseCompile 'com.ms-square:debugoverlay-no-op:1.0.0'
testCompile 'com.ms-square:debugoverlay-no-op:1.0.0'
debugCompile 'com.ms-square:debugoverlay:1.0.1'
releaseCompile 'com.ms-square:debugoverlay-no-op:1.0.1'
testCompile 'com.ms-square:debugoverlay-no-op:1.0.1'
}
```

Please note that `com.ms-square:debugoverlay:1.0.0` will add `android.permission.SYSTEM_ALERT_WINDOW` to your app.
Please note that `com.ms-square:debugoverlay:1.0.1` will add `android.permission.SYSTEM_ALERT_WINDOW` to your app.
Threfore, you should avoid to use that dependency for your release build.

FYI, the following table describes the total number of method/field references in this library's release aar.
This data is acquired by using [Dexcount Gradle Plugin](https://github.com/KeepSafe/dexcount-gradle-plugin).

| library | methods | fields |
|:------------- |:-------------|:-------------|
|com.ms-square:debugoverlay:1.0.0|515|227|
|com.ms-square:debugoverlay-no-op:1.0.0|127|36|
|com.ms-square:debugoverlay:1.0.1|515|227|
|com.ms-square:debugoverlay-no-op:1.0.1|127|36|

Due to the extensibility of this library, no-op version unfortunately has more than a few methods.
If you want to eliminate such method count in your release build, consider having separate `Application` class only for your debug build which uses this library and just specify `debugCompile 'com.ms-square:debugoverlay:1.0.0'` in the dependencies section of build.gradle.
If you want to eliminate such method count in your release build, consider having separate `Application` class only for your debug build which uses this library and just specify `debugCompile 'com.ms-square:debugoverlay:1.0.1'` in the dependencies section of build.gradle.

Usage
------
Expand Down Expand Up @@ -267,10 +267,6 @@ Now, the overlay successfully shows the newly added custom module at the bottom.

Thanks for reading!

Change logs
----------
* 1.0.0 : Initial Release. (4/2017)

License
----------

Expand Down
4 changes: 3 additions & 1 deletion debugoverlay/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ android {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support:support-compat:25.3.1'
compile 'com.android.support:support-core-utils:25.3.1'
compile 'com.android.support:support-annotations:25.3.1'
}

// for maven central deployment
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ android.enableBuildCache=true

# For maven central
GROUP=com.ms-square
VERSION_NAME=1.0.0
VERSION_CODE=1
VERSION_NAME=1.0.1
VERSION_CODE=2
POM_PACKAGING=aar
POM_DESCRIPTION=Android library to display various debugging information in an overlay window

Expand Down
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ dependencies {
releaseCompile project(':debugoverlay-no-op')
testCompile project(':debugoverlay-no-op')

compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
compile 'com.android.support:design:25.3.0'
compile 'com.android.support:design:25.3.1'

debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
Expand Down

0 comments on commit 50d626d

Please sign in to comment.