Skip to content

Commit

Permalink
feat: add Android 14 support (SDKCF-6327)
Browse files Browse the repository at this point in the history
  • Loading branch information
maureenorea-clores authored Feb 28, 2024
1 parent f0a7339 commit b59ae8e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ buildscript {
apply from: 'config/index.gradle'

CONFIG.versions.android.sdk.min = 23
CONFIG.versions.android.sdk.target = 33
CONFIG.versions.android.sdk.compile = 33
CONFIG.versions.android.sdk.target = 34
CONFIG.versions.android.sdk.compile = 34
CONFIG.versions.kotlin = '1.6.21'

repositories {
Expand Down
12 changes: 8 additions & 4 deletions inappmessaging/USERGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@ dependencies {
```
Please refer to [Changelog](#changelog) section for the latest version.

### #3 Target and compile SDK version to 33 or above.
Note: It is required to target and compile to SDK version 33 or above.
### #3 Target and compile SDK version to 34 or above.
Note: It is required to target and compile to SDK version 34 or above.

```groovy
android {
compileSdkVersion 33
compileSdkVersion 34
defaultConfig {
// Defines the minimum API level required to run the app.
minSdkVersion 23
// Specifies the API level used to test the app.
targetSdkVersion 33
targetSdkVersion 34
}
}
```
Expand Down Expand Up @@ -483,6 +483,10 @@ Documents targeting Product Managers:

## <a name="changelog"></a> Changelog

### 7.6.0 (In-Progress)
* SDKCF-6327: Updated compile and target SDK to API 34 (Android 14).
- As part of security updates, the use of implicit intents is restricted. If you plan to redirect users to internal app activity through a campaign's button action, make sure to mark the activity as `android:exported="true"`.

### 7.5.0 (2023-12-12)
* SDKCF-6575: Added sending of device Id in all IAM requests.
* Improved the following classes to increase code coverage:
Expand Down
4 changes: 2 additions & 2 deletions test-compose/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ apply plugin: 'kotlin-kapt'
def compose_version = '1.2.0-rc02'

android {
compileSdkVersion 33
compileSdkVersion CONFIG.versions.android.sdk.compile

defaultConfig {
applicationId "com.rakuten.tech.mobile.test_compose"
versionCode 1
versionName "0.0"
minSdkVersion CONFIG.versions.android.sdk.min
targetSdkVersion 33
targetSdkVersion CONFIG.versions.android.sdk.target

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
4 changes: 2 additions & 2 deletions test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: "kotlin-android"
apply plugin: 'kotlin-kapt'

android {
compileSdkVersion 33
compileSdkVersion CONFIG.versions.android.sdk.compile

defaultConfig {
applicationId "rakuten.com.tech.mobile.test"
Expand All @@ -14,7 +14,7 @@ android {
// Defines the minimum API level required to run the app.
minSdkVersion CONFIG.versions.android.sdk.min
// Specifies the API level used to test the app.
targetSdkVersion 33
targetSdkVersion CONFIG.versions.android.sdk.target

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand Down
7 changes: 3 additions & 4 deletions test/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@

<activity
android:name=".SecondActivity"
android:exported="false"
android:exported="true"
tools:ignore="AppLinkUrlError">
<intent-filter android:label="second_activity">
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.VIEW"/>
<data
android:host="www.rakuten.com"
android:pathPrefix="/inapp"
android:scheme="https"/>
android:scheme="sampleapp"
android:host="second.activity" />
</intent-filter>
</activity>
</application>
Expand Down

0 comments on commit b59ae8e

Please sign in to comment.