Skip to content

Releases: rakutentech/android-miniapp

v4.0.0

01 Mar 08:50
5416055
Compare
Choose a tag to compare

SDK

  • Upgraded: Target SDK is now Android 12 (API level 31)
  • Upgraded: SDK dependencies to new versions
    • androidx.core:core-ktx:1.6.0
    • androidx.webkit:webkit:1.4.0
    • com.google.android.gms:play-services-ads:20.5.0
    • org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31
    • org.jetbrains.kotlin:kotlin-test:1.5.31
    • org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2
    • org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2
    • com.squareup.okhttp3:okhttp:4.9.1
    • androidx.appcompat:appcompat:1.3.0
    • androidx.recyclerview:recyclerview:1.2.1
  • Feature: Added interface for requesting Camera permission e.g. MiniAppCameraPermissionDispatcher. Please see user-guide.
  • Removed: Functions which were deprecated in previous releases have been removed:
    • MiniAppMessageBridge.getUniqueId()
    • UserInfoBridgeDispatcher.getAccessToken(miniAppId: String, onSuccess: (tokenData: TokenData) -> Unit, onError: (message: String) -> Unit)
    • UserInfoBridgeDispatcher.getAccessToken(miniAppId: String, accessTokenScope: AccessTokenScope, onSuccess: (tokenData: TokenData) -> Unit, onError: (message: String) -> Unit)
  • Removed: Classes which were deprecated in this releases have been removed:
    • AdMobDisplayer19
  • Update: Added a new constructor to pass hostLocale info in HostEnvironmentInfo data class.
  • Update: Removed admob 19 support.
  • Feature: Added Ad placement beta support. Please see user-guide.
  • Update: Renamed AdMobDisplayer20 to AdMobDisplayer.

Sample App

  • Upgraded: Target SDK is now Android 12 (API level 31)
  • Upgraded: Sample App dependencies to new versions
    • androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1
    • androidx.activity:activity-ktx:1.2.4
    • com.github.bumptech.glide:glide:4.12.0
    • com.google.android.material:material:1.4.0
    • com.google.code.gson:gson:2.8.9

v3.9.1

21 Jan 05:12
e10f9b3
Compare
Choose a tag to compare

SDK

  • Fix: Unable to launch a mini app while the device is offline

v3.9.0

06 Jan 03:07
4a98672
Compare
Choose a tag to compare

SDK

  • Feature: Added languageCode parameter in MiniApp.getMiniAppManifest to support for internationalized manifest.
  • Feature: Added hostLocale in HostEnvironmentInfo to provide default language value from Host App.
  • Feature: Added promotionalImageUrl and promotionalText in MiniAppInfo model.
  • Feature: Added support for taking picture from camera in Mini App.

Sample App

  • Feature: Added production and staging toggle to change environments.
  • Feature: Adding Sharing option to display the promotional content via MiniAppDisplay.

v3.8.0

06 Jan 03:07
3691a8d
Compare
Choose a tag to compare

SDK

  • Feature: Added getHostEnvironmentInfo function in MiniAppMessageBridge to provide environment information to Mini App.
  • Feature: Added dispatchNativeEvent function in MiniAppMessageBridge to send events to Mini App.
  • Feature: Added rakuten.miniapp.device.FILE_DOWNLOAD custom permission before downloading file attachment in MiniApp.

Sample App

  • Feature: Added dynamic deeplink support to test deeplink urls from Mini App.

v3.7.0

06 Jan 03:07
d7a37ff
Compare
Choose a tag to compare

SDK

  • Feature: Added admob-latest module to support latest admob sdk.
  • Feature: Added getMiniAppInfoByPreviewCode interface to get MiniAppInfo by preview code.
  • Feature: Added optional public key pinning through MiniAppSdkConfig.
  • Feature: Added additional rat events to track sdk feature usage.
  • Feature: Added signature verification process before downloading a MiniApp. HostApp also can enable the settings of SDK to verify signature. Please see user-guide.

Sample App

  • Feature: User can edit contact name and email in App Settings.
  • Feature: User can see access token scopes requested for the RAE audience in first-time screen.
  • Feature: User can scan qr code and preview miniapp in demo app.
  • Feature: Added deeplink support to open miniapp in demo app by qrcode scan.
  • Feature: Added additional rat events to track the demo app by adding custom views.
  • Feature: Added signature verification requirement enabling option in App Settings.

v3.6.1: fix: Create custom download cache file provider

06 Jan 03:06
Compare
Choose a tag to compare
  • Fix: Prevent manifest merger failure when Host App already has implemented a FileProvider.

3.6.0 (2021-09-16)

  • Feature: Added support for downloading files in a Mini App, and added MiniAppDownloadNavigator interface for overriding the default file download behavior.

v3.5.0

06 Jan 03:05
f7f9c88
Compare
Choose a tag to compare

SDK

  • Feature: Added getPoints interface in UserInfoBridgeDispatcher to request for user's point with checking rakuten.miniapp.user.POINTS custom permission.
  • Feature: Added support for using ".jpg" and multiple types e.g. ".jpg,.png" in the accept field of the file input.
  • Update: Updated MessageToContact to support an optional message to the user for the contact picker capability.
  • Update: Included technical improvement in manifest file verification process.

Sample App

  • Feature: Added a screen to input user's points which can be invoked using getPoints interface.
  • Update: Display a banner message on contact picker ui while sending message to single/multiple contacts.

v3.4.0

06 Jan 03:05
04537c1
Compare
Choose a tag to compare

SDK

  • Feature: Update MiniAppSdkConfig class to accept list of MiniAppAnalyticsConfig to send analytics in multiple account.
  • Change: Added getAccessToken result with new Error type i.e MiniAppAccessTokenError to support predefined error types, previous getAccessToken is deprecated and can not be used anymore.
  • Fix: Prevent exception during calling onError asynchronously in getUniqueId.
  • Update: Supported "Update codebase" functionality for preview mode.
  • Update: Included technical improvement in custom permission and manifest information caching.

Sample App

  • Feature: Added QA option in settings screen to test authorizationFailureError and custom error type.

v3.3.0: bugfix: preload screen scrolling (#310)

06 Jan 03:05
c85e992
Compare
Choose a tag to compare

SDK

  • Deprecated: Old getUniqueIdinterface.
  • Feature: Added getUniqueId new interface for invoking data using onSuccess and onError.
  • Feature: Support mailto uri address. See this.
  • Feature: Added rakuten.miniapp.user.action.SEND_MESSAGE custom permission and applied to ChatBridgeDispatcher.sendMessageToContactId.

Sample App

  • Change: Replaced the implementation of getUniqueId using new interface.

v3.2.0: Set `null` to file path callback (#299)

06 Jan 03:04
a788283
Compare
Choose a tag to compare

SDK

  • Feature: Added several chatting interfaces e.g. sendMessageToContact, sendMessageToContactId and sendMessageToMultipleContacts in ChatBridgeDispatcher for sending message to single or multiple contacts, even to a specific contact id. HostApp can get the message using MessageToContact object.

Sample App

  • Feature: Added implementations of ChatBridgeDispatcher.sendMessageToContact, ChatBridgeDispatcher.sendMessageToContactId and ChatBridgeDispatcher.sendMessageToMultipleContacts with the demo UI.