Skip to content

Commit

Permalink
- release [2.2.8]
Browse files Browse the repository at this point in the history
  • Loading branch information
zTrap committed Jan 3, 2018
1 parent ab2f1df commit ab9b753
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@ captures/
local.properties
.idea/
*/*.iml
/SlideUp-Android.iml
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## v2.2.8 (03.01.2018)
- Add capability to trigger SlideUp (up/down/start/end) from another View **thanks [@toteto](https://github.com/toteto)**
- Dropped support Android < 14 api level

## v2.2.7.1 (25.07.2017)
- Fixed wrong identifiers for [AboutLibraries](https://github.com/mikepenz/AboutLibraries) (© MikePenz)

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Mansur
Copyright (c) 2018 Mansur

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -16,7 +16,6 @@ allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
maven { url "https://maven.google.com" } // or google() in AS 3.0
}
}
```
Expand Down Expand Up @@ -86,7 +85,7 @@ slideUp = new SlideUpBuilder(slideView)
@Override
public void onSlide(float percent) {
dim.setAlpha(1 - (percent / 100));
if (percent < 100) {
if (percent < 100 && fab.isShown()) {
// slideUp started showing
fab.hide();
}
Expand Down Expand Up @@ -135,7 +134,7 @@ We want to collect and publish this list.

MIT License

Copyright (c) 2017 Mansur
Copyright (c) 2018 Mansur

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 27
buildToolsVersion '27.0.1'
buildToolsVersion '27.0.2'
defaultConfig {
applicationId "com.example.slideup"
minSdkVersion 14
Expand Down
9 changes: 2 additions & 7 deletions build.gradle
@@ -1,11 +1,7 @@
buildscript {
ext {
versions = [
support : '27.0.1',
SlideUp : '2.2.1',
Rx : [
Java : '1.3.0'
]
support: '27.0.2'
]
}
repositories {
Expand All @@ -20,9 +16,8 @@ buildscript {

allprojects {
repositories {
mavenCentral()
jcenter()
maven { url 'https://maven.google.com' }
google()
}
}

Expand Down
6 changes: 3 additions & 3 deletions library/build.gradle
Expand Up @@ -2,13 +2,13 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion 27
buildToolsVersion '27.0.1'
buildToolsVersion '27.0.2'

defaultConfig {
minSdkVersion 14
targetSdkVersion 27
versionCode 8
versionName "2.2.7.1"
versionCode 9
versionName "2.2.8"
}
buildTypes {
release {
Expand Down
18 changes: 4 additions & 14 deletions library/src/main/java/com/mancj/slideup/Internal.java
@@ -1,12 +1,14 @@
package com.mancj.slideup;

import android.graphics.Rect;
import android.view.MotionEvent;
import android.view.View;

/**
* @author pa.gulko zTrap (12.07.2017)
*/
class Internal {
private static Rect sRect = new Rect();

static void checkNonNull(Object obj, String message) {
if (obj == null) {
Expand All @@ -15,19 +17,7 @@ static void checkNonNull(Object obj, String message) {
}

static boolean isUpEventInView(View view, MotionEvent event){
int top = view.getTop();
int bottom = view.getBottom();
int right = view.getRight();
int left = view.getLeft();
if (event.getRawY() > top){
if (event.getRawY() < bottom){
if (event.getRawX() > left){
if (event.getRawX() < right){
return true;
}
}
}
}
return false;
view.getHitRect(sRect);
return sRect.contains((int) event.getRawX(), (int) event.getRawY());
}
}
4 changes: 2 additions & 2 deletions library/src/main/res/values/strings.xml
Expand Up @@ -12,7 +12,7 @@
]]>
</string>
<string name="library_slideup_android_libraryWebsite">https://github.com/mancj/SlideUp-Android/</string>
<string name="library_slideup_android_libraryVersion">2.2.7.1</string>
<string name="library_slideup_android_libraryVersion">2.2.8</string>
<!-- OpenSource section -->
<string name="library_slideup_android_isOpenSource">true</string>
<string name="library_slideup_android_repositoryLink">https://github.com/mancj/SlideUp-Android/blob/master/LICENSE</string>
Expand All @@ -22,5 +22,5 @@
<string name="library_slideup_android_licenseId">mit</string>
<!-- Custom variables section -->
<string name="library_slideup_android_owner">Mancj</string>
<string name="library_slideup_android_year">2017</string>
<string name="library_slideup_android_year">2018</string>
</resources>

0 comments on commit ab9b753

Please sign in to comment.