Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Release 2.12.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sankarbhavanib committed Jan 11, 2016
1 parent cd4fd0c commit f46363e
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The PayPal Android SDK makes it easy to add PayPal and credit card payments to m
The PayPal Android SDK is now available at [Maven Repository](https://repo1.maven.org/maven2/com/paypal/sdk/paypal-android-sdk/). The latest version is available via `mavenCentral()`. Just add the following dependency from `mavenCentral()`:

```
compile 'com.paypal.sdk:paypal-android-sdk:2.12.4'
compile 'com.paypal.sdk:paypal-android-sdk:2.12.5'
```


Expand Down
32 changes: 25 additions & 7 deletions SampleApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,37 @@ android {
}

signingConfigs {
myConfig {
storeFile file("example.keystore")
storePassword "abc123"
keyAlias "example-alias"
keyPassword "abc123"
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}

// Only for SampleApp.
// It is failing because the okio version and okhttp is not found, which is expected.
lintOptions {
abortOnError false
}


buildTypes {
debug {
applicationIdSuffix ".debug"
signingConfig signingConfigs.debug
}

release{
minifyEnabled true
proguardFile file('paypal-proguard.cnf')
signingConfig signingConfigs.myConfig
signingConfig signingConfigs.release
}
}

Expand All @@ -54,5 +68,9 @@ android {
}

dependencies {
compile('com.paypal.sdk:paypal-android-sdk:2.12.4')
if (parent != null) {
compile project(path: ':androidSDK', configuration: 'generalDebug')
} else {
compile('com.paypal.sdk:paypal-android-sdk:2.12.5')
}
}
Binary file added SampleApp/debug.keystore
Binary file not shown.
96 changes: 96 additions & 0 deletions SampleApp/paypal-proguard.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# If your application, applet, servlet, library, etc., contains enumeration
# classes, you'll have to preserve some special methods. Enumerations were
# introduced in Java 5. The java compiler translates enumerations into classes
# with a special structure. Notably, the classes contain implementations of some
# static methods that the run-time environment accesses by introspection (Isn't
# that just grand? Introspection is the self-modifying code of a new
# generation). You have to specify these explicitly, to make sure they aren't
# removed or obfuscated:

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

# More complex applications, applets, servlets, libraries, etc., may contain
# classes that are serialized. Depending on the way in which they are used, they
# may require special attention

-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
private static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}

# --- RECOMMENDED ANDROID CONFIG ------------------------------------------

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider

-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers class * implements android.os.Parcelable {
static android.os.Parcelable$Creator CREATOR;
}


# ---- REQUIRED card.io CONFIG ----------------------------------------
# card.io is a native lib, so anything crossing JNI must not be changed

# Don't obfuscate DetectionInfo or public fields, since
# it is used by native methods
-keep class io.card.payment.DetectionInfo
-keepclassmembers class io.card.payment.DetectionInfo {
public *;
}

-keep class io.card.payment.CreditCard
-keep class io.card.payment.CreditCard$1
-keepclassmembers class io.card.payment.CreditCard {
*;
}

-keepclassmembers class io.card.payment.CardScanner {
*** onEdgeUpdate(...);
}

# Don't mess with classes with native methods

-keepclasseswithmembers class * {
native <methods>;
}

-keepclasseswithmembernames class * {
native <methods>;
}

-keep public class io.card.payment.* {
public protected *;
}


# -------- PayPal SDK ----------
# (does not include card.io)

-dontwarn com.google.android.gms.**
# -- Ignoring warnings from okio based on https://github.com/square/okio/issues/60
-dontwarn okio.*
Binary file removed aars/PayPalAndroidSDK-2.12.4.aar
Binary file not shown.
Binary file added aars/PayPalAndroidSDK-2.12.5.aar
Binary file not shown.
20 changes: 13 additions & 7 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
PayPal Android SDK release notes
================================
2.12.5
----
* Updated okhttp to 2.7.2.
* Minor bug fixes.
* Fixes #233.

2.12.4
----
* Documentation Updates for Maven based integrations
* Documentation Updates for Maven based integrations.
* Disabled `allowBackup` in Manifest.

2.12.3
-----
* SDK is now available at Maven Central
* `com.paypal.sdk:paypal-android-sdk:2.12.3`
* Fixes #14
* Fixes #208
* SDK is now available at Maven Central.
* `com.paypal.sdk:paypal-android-sdk:2.12.3`.
* Fixes #14.
* Fixes #208.

2.12.2
------
* Enabled aar packaging
* Ability to push to maven
* Enabled aar packaging.
* Ability to push to maven.

2.12.1
------
Expand Down

0 comments on commit f46363e

Please sign in to comment.