[Android] Sponsorship integration

Nicolas Pomepuy git at videolan.org
Fri Jul 31 09:27:25 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Jul  3 12:10:53 2020 +0200| [5eb9d5b959c334b9dae0d0c00dba936958808cca] | committer: Nicolas Pomepuy

Sponsorship integration

> https://code.videolan.org/videolan/vlc-android/commit/5eb9d5b959c334b9dae0d0c00dba936958808cca
---

 application/donations/.gitignore                   |    1 +
 application/donations/build.gradle                 |   82 ++
 application/donations/proguard-rules.pro           |   21 +
 .../vlc/donations/ExampleInstrumentedTest.kt       |   48 +
 application/donations/src/main/AndroidManifest.xml |   31 +
 .../vending/billing/IInAppBillingService.aidl      |  281 ++++++
 .../java/org/videolan/vlc/donations/VLCBilling.kt  |  133 +++
 .../vlc/donations/util/IabBroadcastReceiver.java   |   60 ++
 .../videolan/vlc/donations/util/IabException.java  |   43 +
 .../org/videolan/vlc/donations/util/IabHelper.java | 1050 ++++++++++++++++++++
 .../org/videolan/vlc/donations/util/IabResult.java |   45 +
 .../org/videolan/vlc/donations/util/Inventory.java |   91 ++
 .../org/videolan/vlc/donations/util/Purchase.java  |   66 ++
 .../org/videolan/vlc/donations/util/Security.java  |  121 +++
 .../videolan/vlc/donations/util/SkuDetails.java    |   64 ++
 .../org/videolan/vlc/donations/ExampleUnitTest.kt  |   41 +
 .../main/java/org/videolan/resources/Constants.kt  |    1 +
 .../src/main/res/color/donate_text_color.xml       |    5 +
 .../res/color/standard_selection_orange500.xml     |    1 +
 .../src/main/res/drawable-nodpi/qr_unsubscribe.png |  Bin 0 -> 2097 bytes
 .../main/res/drawable-v21/donate_button_ripple.xml |    3 +
 .../src/main/res/drawable-v21/ripple_white.xml     |    6 +
 .../main/res/drawable/donate_background_color.xml  |    5 +
 .../main/res/drawable/donate_button_background.xml |    8 +
 .../src/main/res/drawable/donate_button_ripple.xml |    5 +
 .../drawable/donate_purchased_background_color.xml |    5 +
 .../main/res/drawable/donate_text_background.xml   |    8 +
 .../src/main/res/drawable/ic_check_small.xml       |    9 +
 .../resources/src/main/res/drawable/ic_donate.xml  |    9 +
 .../src/main/res/drawable/ic_donate_big.xml        |    9 +
 .../src/main/res/drawable/ic_emoji_clap_hands.xml  |   60 ++
 .../src/main/res/drawable/ic_emoji_eyes_heart.xml  |  113 +++
 .../src/main/res/drawable/ic_emoji_eyes_star.xml   |  110 ++
 .../src/main/res/drawable/ic_emoji_party.xml       |  198 ++++
 .../src/main/res/drawable/ic_emoji_thumb_up.xml    |   93 ++
 .../main/res/drawable/rectangle_default_darker.xml |    8 +
 .../rectangle_default_darker_border_primary.xml    |    8 +
 .../src/main/res/drawable/rectangle_grey_700.xml   |    6 +
 .../src/main/res/drawable/rectangle_orange_300.xml |    6 +
 .../src/main/res/drawable/rectangle_orange_400.xml |    6 +
 .../src/main/res/drawable/rectangle_primary.xml    |    6 +
 .../main/res/drawable/rectangle_transparent.xml    |    6 +
 .../res/drawable/rectangle_white_transparent.xml   |    6 +
 .../resources/src/main/res/values/attrs.xml        |    2 +
 .../resources/src/main/res/values/strings.xml      |   13 +
 .../org/videolan/television/ui/MainTvActivity.kt   |    4 +
 .../org/videolan/television/ui/MainTvFragment.kt   |   15 +
 application/vlc-android/assets/license.htm         |    1 +
 application/vlc-android/build.gradle               |    4 +
 .../vlc-android/res/layout/donation_sku.xml        |   38 +
 application/vlc-android/res/layout/donations.xml   |  303 ++++++
 .../vlc-android/res/layout/more_fragment.xml       |   71 +-
 application/vlc-android/res/values/styles.xml      |   20 +
 .../src/org/videolan/vlc/gui/MainActivity.kt       |    9 +-
 .../src/org/videolan/vlc/gui/MoreFragment.kt       |   15 +
 .../src/org/videolan/vlc/gui/PlaylistActivity.kt   |    1 -
 .../videolan/vlc/gui/dialogs/VLCBillingDialog.kt   |  241 +++++
 .../src/org/videolan/vlc/gui/helpers/UiTools.kt    |    8 +
 .../org/videolan/vlc/gui/view/DonationSkuView.kt   |   78 ++
 settings.gradle                                    |    2 +-
 60 files changed, 3696 insertions(+), 7 deletions(-)

Diff:   https://code.videolan.org/videolan/vlc-android/commit/5eb9d5b959c334b9dae0d0c00dba936958808cca


More information about the Android mailing list