Releases: rakutentech/android-miniapp
Releases · rakutentech/android-miniapp
v4.0.0
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 inHostEnvironmentInfo
data class. - Update: Removed admob 19 support.
- Feature: Added Ad placement beta support. Please see user-guide.
- Update: Renamed
AdMobDisplayer20
toAdMobDisplayer
.
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
SDK
- Fix: Unable to launch a mini app while the device is offline
v3.9.0
SDK
- Feature: Added
languageCode
parameter inMiniApp.getMiniAppManifest
to support for internationalized manifest. - Feature: Added
hostLocale
inHostEnvironmentInfo
to provide default language value from Host App. - Feature: Added
promotionalImageUrl
andpromotionalText
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
SDK
- Feature: Added
getHostEnvironmentInfo
function inMiniAppMessageBridge
to provide environment information to Mini App. - Feature: Added
dispatchNativeEvent
function inMiniAppMessageBridge
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
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
- 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
SDK
- Feature: Added
getPoints
interface inUserInfoBridgeDispatcher
to request for user's point with checkingrakuten.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
SDK
- Feature: Update
MiniAppSdkConfig
class to accept list ofMiniAppAnalyticsConfig
to send analytics in multiple account. - Change: Added
getAccessToken
result with new Error type i.eMiniAppAccessTokenError
to support predefined error types, previousgetAccessToken
is deprecated and can not be used anymore. - Fix: Prevent exception during calling
onError
asynchronously ingetUniqueId
. - 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
andcustom
error type.
v3.3.0: bugfix: preload screen scrolling (#310)
SDK
- Deprecated: Old
getUniqueId
interface. - Feature: Added
getUniqueId
new interface for invoking data usingonSuccess
andonError
. - Feature: Support
mailto
uri address. See this. - Feature: Added
rakuten.miniapp.user.action.SEND_MESSAGE
custom permission and applied toChatBridgeDispatcher.sendMessageToContactId
.
Sample App
- Change: Replaced the implementation of
getUniqueId
using new interface.
v3.2.0: Set `null` to file path callback (#299)
SDK
- Feature: Added several chatting interfaces e.g.
sendMessageToContact
,sendMessageToContactId
andsendMessageToMultipleContacts
inChatBridgeDispatcher
for sending message to single or multiple contacts, even to a specific contact id. HostApp can get the message usingMessageToContact
object.
Sample App
- Feature: Added implementations of
ChatBridgeDispatcher.sendMessageToContact
,ChatBridgeDispatcher.sendMessageToContactId
andChatBridgeDispatcher.sendMessageToMultipleContacts
with the demo UI.