Skip to content

Commit 877588b

Browse files
authored
Merge pull request #20 from psx95/ps/release/v0.1-alpha
Ps/release/v0.1 alpha
2 parents 78239eb + 24e1141 commit 877588b

23 files changed

Lines changed: 38 additions & 49 deletions
-4 Bytes
Binary file not shown.

app/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ android {
2020
sourceCompatibility JavaVersion.VERSION_1_8
2121
targetCompatibility JavaVersion.VERSION_1_8
2222
}
23+
defaultPublishConfig "debug"
2324
}
2425

2526
dependencies {
2627
implementation fileTree(dir: 'libs', include: ['*.jar'])
2728
implementation 'com.android.support:appcompat-v7:27.1.1'
28-
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
29+
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
2930
implementation 'com.android.support:design:27.1.1'
3031
testImplementation 'junit:junit:4.12'
3132
implementation 'com.android.support:support-dynamic-animation:27.1.1'
3233
androidTestImplementation 'com.android.support.test:runner:1.0.1'
3334
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
34-
implementation project(":hiddenlinearlayoutview")
35+
implementation project(':hidden-layout-view')
3536
}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ buildscript {
88
}
99
dependencies {
1010
classpath 'com.android.tools.build:gradle:3.1.1'
11-
12-
11+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
12+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
1313
// NOTE: Do not place your application dependencies here; they belong
1414
// in the individual module build.gradle files
1515
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
apply plugin: 'com.android.library'
22

3+
ext {
4+
bintrayRepo = 'HiddenLayoutView'
5+
bintrayName = 'hidden-layout-view'
6+
7+
publishedGroupId = 'com.psx95'
8+
libraryName = 'HiddenLayoutView'
9+
artifact = 'hidden-layout-view'
10+
11+
libraryDescription = 'A library to show hidden layouts with built-in animations'
12+
13+
siteUrl = 'https://github.com/psx95/HiddenLayout'
14+
gitUrl = 'https://github.com/psx95/HiddenLayout.git'
15+
16+
libraryVersion = '0.1.0'
17+
18+
developerId = 'psx95'
19+
developerName = 'Pranav Sharma'
20+
developerEmail = 'pranav.ps95@hotmail.com'
21+
22+
licenseName = 'MIT License'
23+
licenseUrl = 'https://opensource.org/licenses/MIT'
24+
allLicenses = ["MIT"]
25+
}
26+
327
android {
428
compileSdkVersion 27
529

@@ -36,3 +60,5 @@ dependencies {
3660
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
3761
implementation 'com.android.support:support-dynamic-animation:27.1.1'
3862
}
63+
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
64+
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'

hiddenlinearlayoutview/src/androidTest/java/com/psx/hiddenlinearlayoutview/ExampleInstrumentedTest.java renamed to hidden-layout-view/src/androidTest/java/com/psx/hiddenlinearlayoutview/ExampleInstrumentedTest.java

File renamed without changes.
File renamed without changes.

hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java renamed to hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private void initView(AttributeSet attributeSet) {
6868
inflatedUnderLayout = under.inflate();
6969
inflatedOverLayout = over.inflate();
7070
} else {
71-
Log.d(TAG, "Layout inflater null");
71+
Log.e(TAG, "Layout inflater null");
7272
}
7373
initListeners();
7474
setupListeners();
@@ -88,21 +88,19 @@ private void initListeners() {
8888
overLayoutEventListener = (view) -> {
8989
};
9090
animationUpdateListeners = () -> {
91-
Log.d(TAG, "Max Pulled");
9291
};
9392
}
9493

9594
private void setupAnimations(String animationType) {
9695
int animType = Integer.parseInt(animationType);
9796
switch (animType) {
9897
case 1:
99-
Log.d(TAG, "Spring Animation");
10098
SpringAnimationUtil springAnimationUtil = new SpringAnimationUtil(context, inflatedOverLayout,
101-
revealViewPercentageRight, inflatedUnderLayout.findViewById(R.id.revealed_view_right),
99+
revealViewPercentageRight, inflatedUnderLayout,
102100
scaleHiddenView, maxMovementFactor, this);
103101
SpringAnimation springAnimation = springAnimationUtil.getxAnimation();
104102
if (springAnimation == null)
105-
Log.wtf(TAG, "SPringanimation is null");
103+
Log.wtf(TAG, "SpringAnimation is null");
106104
springReverseAnim = springAnimationUtil.getReverseXAnim();
107105
animation = springAnimation;
108106
reverseAnimation = springReverseAnim;
@@ -121,7 +119,6 @@ private void setupAnimations(String animationType) {
121119

122120
private void loadPreferencesFromAttributes(AttributeSet attributeSet) {
123121
if (attributeSet != null) {
124-
Log.d(TAG, "Attribute set not null");
125122
TypedArray typedArray = getContext().obtainStyledAttributes(attributeSet, R.styleable.HiddenLayoutView);
126123
try {
127124
layout_over = typedArray.getResourceId(R.styleable.HiddenLayoutView_layout_over, R.layout.over_layout_default);
@@ -132,14 +129,11 @@ private void loadPreferencesFromAttributes(AttributeSet attributeSet) {
132129
maxMovementFactor = typedArray.getFloat(R.styleable.HiddenLayoutView_maxMovementFactorForSpring, 2);
133130
flingFriction = typedArray.getFloat(R.styleable.HiddenLayoutView_flingFriction, 0.8f);
134131
flingFrictionReverse = typedArray.getFloat(R.styleable.HiddenLayoutView_flingFrictionReverse, 0.001f);
135-
Log.d(TAG, "Animation typed Array " + animationType);
136132
if (animationType == null || animationType.equals(""))
137133
animationType = "2";
138134
} finally {
139135
typedArray.recycle();
140136
}
141-
} else {
142-
Log.d(TAG, "Attribute set is null ");
143137
}
144138
}
145139

@@ -227,7 +221,6 @@ public float getFlingFrictionReverse() {
227221

228222
@OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
229223
private void closeOpenHiddenView() {
230-
Log.i(TAG, "Closing View");
231224
Handler handler = new Handler();
232225
handler.postDelayed(new Runnable() {
233226
@Override

hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Interfaces/AnimationUpdateListeners.java renamed to hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Interfaces/AnimationUpdateListeners.java

File renamed without changes.

0 commit comments

Comments
 (0)