TrivialDrive vs TrivialDrive V2?

Why are there two versions of TrivialDrive?

https://github.com/googlesamples/android-play-billing

Which version should be the main reference project for teaching billing in the application? What is the difference between the versions?

+6
source share
3 answers

A small search shows that the Trival Drive V2 sample has a common build.gradle file:

https://github.com/googlesamples/android-play-billing/blob/master/TrivialDrive_v2/shared-module/build.gradle

which has the following line:

compile 'com.android.billingclient:billing:dp-1'

Take a look at the documentation here:

https://developer.android.com/google/play/billing/billing_library.html

, Google Billing Library dp-1:

Play Billing Library dp-1 ( 2017 ), API - Android 2.2 ( API 8). In-app Billing API - 3.

Android API In-app Billing API.

, Trivial Drive V2 Wear 2.0 - Wear 2.0.

+3

TrivialDrive_v2 Google Play Billing.

It is based on the latest release of the Play Billing library (currently 1.0) and is trying to promote best practices for integrating with it.

The TrivialDrive sample was stored for those who still use integration via the AIDL file (for example, C ++ developers).

0
source

All Articles