Android

The preferred way to include SDK in your app is directly through Gradle.

To do so add the following:

in project build.gradle
repositories {
                   ...
                    maven {
                        url "http://static.newton.pm/android/"
                    }
                }
in app build gradle
compile 'com.buongiorno:newton:[choose the specific version here]@aar'
and check if you are using these libraries
 //facebook activity
compile 'com.facebook.android:facebook-android-sdk:4.0.0'
//google play services
compile 'com.google.android.gms:play-services-gcm:8.3.0'
//ok3 http http connector
compile 'com.squareup.okhttp3:okhttp:3.0.1'

Available versions

Changelog

#V3.7.1
=======
* Bad manifest in previous version

#V3.7.0
=======
* Added getUserTokenType anonymous/identified/prospect
* Added Generic Login Flow for usernames and password login

#V3.6.2
=======
* Removed obsolete msisdn regexp on MSISDNForgot

#V3.6.1
=======
* Added getIdentities to IdentityManager

#V3.5.0
=======
* Added getSnowplowUser to public interface to retrieve the snowplow user context as HashMap

#V3.4.2
=======
* Number Recognition implementation using old MSISDNUR Login Flow

#V3.4.1
=======
* removed test

#V3.4.0
=======
* added missing setNoPin for msisdn loginflow

#V3.3.0
=======
* added the login with the user 2.0 cookie, added test to sample app
* added the set of the distribution group

#V3.2.0
=======
* fixed transient token url, added test to sample app

#V3.1.1
=======
* added forwarding of country and operator from payments

#V3.1.0
=======
* isPaying proper implementation

#V3.0.0
=======
* Rebuilt exception handling and NewtonError from scratch

#V2.0.1
=======
* Removed annotation that breaks build

#V2.0.0
=======
* SECURITY FIXES: Facebook activity removed, MD5 removed
* Added proper OAuth loginFlow

#V1.17.1
=======
* BUGFIX: wrong param name in pin MSISDNForgot

#V1.17.0
=======
* Fixed smsTemplate in MSISDNForgot and addEmail Flows

#V1.16.0
=======
* Gradle Upgrade
* New logins implementation

#V1.15.1
=======
* Added check for null pointer (early system.exit Bugfix)


#V1.15.0
=======
* Payment implementation
* Mobile fingerprint first release


#V1.14.0
=======
* Bugfix of timezone localized
* Bugfix android O
* Started refactor of project: build gradle


#V1.13.1
=======
* Changed jacoco plugin (test report)
* Minimal refactoring in EventQueue classes
* Bugfix for crash in OS on push receive if app in background


#V1.13.0
=======
* Push events normalization
* Added backward compatibility for GCM in play services 5 (legacy version)
* Bugfix: Null pointer if connection fails in A/B test

#V1.12.0
=======
* A/B Test ready
* Removed READ_PHONE_STATE permission: deviceID hash(ANDROID_ID) only
* Fallback behaviour if PushNotificationCallback not set.
  It will launch the Application's main activity.

#V1.11.1
========
* lazy initialization (to avoid multiple start session)
* check custom data weight before send it (also in start session) MAX BYTES SIZE: 10K
* check custom data string properties length and resizing to max CHAR 512
* unified NewtonStatus and NewtonToken classes

#V1.10.1
========
* Pause/Resume heartbeat event on application background/foreground
* Resolved bug in race condition (push registration wit login)

#V1.10.0
========

#V1.9.1
=======