diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aadc74..abb8c48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ -## 1.0.0 +## 1.1.1 Features: -- PallyConMultiDrmSDK has been updated to version 1.0.0 +- PallyConMultiDrmSDK has been updated to version 1.1.1 + - Fixed bug for iOS + +## 1.1.0 + +Features: + +- PallyConMultiDrmSDK has been updated to version 1.1.0 - PallyConMultiDrmSDK 1.0.0 is based on react-native. diff --git a/android/src/main/java/com/pallycon/multidrm/sdk/PallyConSdk.kt b/android/src/main/java/com/pallycon/multidrm/sdk/PallyConSdk.kt index 018b604..f45a02b 100644 --- a/android/src/main/java/com/pallycon/multidrm/sdk/PallyConSdk.kt +++ b/android/src/main/java/com/pallycon/multidrm/sdk/PallyConSdk.kt @@ -537,7 +537,8 @@ class PallyConSdk constructor(val context: Context) { url = config.contentUrl, localPath = "", drmConfig = drmConfig, - cookie = config.contentCookie + cookie = config.contentCookie, + httpHeaders = contentHeaders ) } } diff --git a/examples/advanced/android/app/build.gradle b/examples/advanced/android/app/build.gradle index d1f0569..0938bdb 100644 --- a/examples/advanced/android/app/build.gradle +++ b/examples/advanced/android/app/build.gradle @@ -158,7 +158,7 @@ android { } dependencies { - implementation (name:"PallyConLicenseCipher", ext:"aar") +// implementation (name:"PallyConLicenseCipher", ext:"aar") // The version of react-native is set by the React Native Gradle Plugin implementation("com.facebook.react:react-android") diff --git a/examples/advanced/package.json b/examples/advanced/package.json index b02bf8d..af70f97 100644 --- a/examples/advanced/package.json +++ b/examples/advanced/package.json @@ -14,7 +14,7 @@ "dependencies": { "@react-navigation/native": "^6.1.5", "@react-navigation/native-stack": "^6.9.11", - "pallycon-react-native-sdk": "file:../../package_v1.1.0_b37.tgz", + "pallycon-react-native-sdk": "file:../../package_v1.1.0_b40.tgz", "react": "^18.2.0", "react-native": "0.71.2", "react-native-base64": "^0.2.1", diff --git a/examples/advanced/yarn.lock b/examples/advanced/yarn.lock index f7adfef..54aa606 100644 --- a/examples/advanced/yarn.lock +++ b/examples/advanced/yarn.lock @@ -5680,9 +5680,9 @@ "resolved" "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" "version" "2.2.0" -"pallycon-react-native-sdk@file:../../package_v1.1.0_b37.tgz": - "integrity" "sha512-xWOST62LMby70C4T561bKxf4TbwXqATC4pLviGxaAy9iyj0MZ34rl2u0hGE4K3PXPfvLJYbRp83CZqpf/jZHaA==" - "resolved" "file:../../package_v1.1.0_b37.tgz" +"pallycon-react-native-sdk@file:../../package_v1.1.0_b40.tgz": + "integrity" "sha512-zkQ0CVnuhAUwvhREWAo+rcnT4qn0r2jYWq8n89AN8TsQb6XeRcbvQUTGBVJMXbwOXDroP/zhKxIEOqzxyF2Lkg==" + "resolved" "file:../../package_v1.1.0_b40.tgz" "version" "1.1.0" dependencies: "@types/react-native-base64" "^0.2.0" diff --git a/examples/basic/package.json b/examples/basic/package.json index 3a9614a..b12004f 100644 --- a/examples/basic/package.json +++ b/examples/basic/package.json @@ -14,7 +14,7 @@ "@react-native-community/cli-platform-android": "^10.1.3", "@react-navigation/native": "^6.1.5", "@react-navigation/native-stack": "^6.9.11", - "pallycon-react-native-sdk": "file:../../package_v1.0.0_b37.tgz", + "pallycon-react-native-sdk": "^1.1.0", "react": "18.2.0", "react-native": "0.71.2", "react-native-video": "file:../react-native-video/react-native-video-6.0.0-alpha.5_b09.tgz" diff --git a/ios/Util/EventEmitter.swift b/ios/Util/EventEmitter.swift index 5508cb7..83b24a8 100644 --- a/ios/Util/EventEmitter.swift +++ b/ios/Util/EventEmitter.swift @@ -35,6 +35,7 @@ class EventEmitter { PallyConEventType.networkConnectedError.name, PallyConEventType.detectedDeviceTimeModifiedError.name, PallyConEventType.migrationError.name, + PallyConEventType.licenseCipherError.name, PallyConEventType.unknownError.name, PallyConEventType.progress.name, ] diff --git a/ios/models/PallyConEventType.swift b/ios/models/PallyConEventType.swift index 3fb18d8..b2f3f10 100644 --- a/ios/models/PallyConEventType.swift +++ b/ios/models/PallyConEventType.swift @@ -13,6 +13,7 @@ enum PallyConEventType { case networkConnectedError case detectedDeviceTimeModifiedError case migrationError + case licenseCipherError case unknownError case progress } @@ -32,6 +33,7 @@ extension PallyConEventType { case .networkConnectedError: return "networkConnectedError" case .detectedDeviceTimeModifiedError: return "detectedDeviceTimeModifiedError" case .migrationError: return "migrationError" + case .licenseCipherError: return "licenseCipherError" case .unknownError: return "unknownError" case .progress: return "progress" } diff --git a/package.json b/package.json index 1d49f48..18c23d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pallycon-react-native-sdk", - "version": "1.1.0", + "version": "1.1.1", "description": "pallyCon multi-drm react-native sdk", "main": "lib/index.js", "types": "lib/index.d.ts",