Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Gradle and Android SDK to current versions #737

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ gen
target/

*.iml

# Gradle build
library/.gradle/
library/build/
library/local.properties
18 changes: 0 additions & 18 deletions example/example.iml

This file was deleted.

6 changes: 1 addition & 5 deletions library/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="5"
android:targetSdkVersion="17" />

</manifest>
</manifest>
10 changes: 5 additions & 5 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.4.+'
classpath 'com.android.tools.build:gradle:1.3.0'
}
}
apply plugin: 'android-library'
apply plugin: 'com.android.library'

dependencies {
compile 'com.android.support:support-v4:13.0.0'
compile 'com.android.support:support-v4:23.0.1'
}

android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
compileSdkVersion 23
buildToolsVersion '23.0.1'

defaultConfig {
minSdkVersion 7
Expand Down
19 changes: 0 additions & 19 deletions library/library.iml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import android.support.v4.view.ViewCompat;
import android.support.v4.view.ViewConfigurationCompat;
import android.util.AttributeSet;
import android.util.FloatMath;
import android.util.Log;
import android.view.FocusFinder;
import android.view.KeyEvent;
Expand Down Expand Up @@ -300,7 +299,7 @@ public void clearIgnoredViews() {
float distanceInfluenceForSnapDuration(float f) {
f -= 0.5f; // center the values about 0.
f *= 0.3f * Math.PI / 2.0f;
return (float) FloatMath.sin(f);
return (float) Math.sin(f);
}

public int getDestScrollX(int page) {
Expand Down