Skip to content

Commit

Permalink
nami sku initializer change (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
namidan authored Jul 26, 2023
1 parent 3035b12 commit 704fb0a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
8 changes: 0 additions & 8 deletions examples/TestNamiTV/ios/Basic.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,10 @@
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Basic-tvOS/Pods-Basic-tvOS-resources.sh",
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
"${PODS_ROOT}/../../node_modules/react-native-theoplayer/ios/style.css",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/style.css",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand All @@ -410,12 +408,10 @@
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Basic-tvOS/Pods-Basic-tvOS-frameworks.sh",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Nami/NamiApple.framework/NamiApple",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/THEOplayerSDK-core/THEOplayerSDK.framework/THEOplayerSDK",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/NamiApple.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/THEOplayerSDK.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down Expand Up @@ -507,12 +503,10 @@
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Basic-tvOS-PROD/Pods-Basic-tvOS-PROD-resources.sh",
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
"${PODS_ROOT}/../../node_modules/react-native-theoplayer/ios/style.css",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/style.css",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand All @@ -527,12 +521,10 @@
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Basic-tvOS-PROD/Pods-Basic-tvOS-PROD-frameworks.sh",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Nami/NamiApple.framework/NamiApple",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/THEOplayerSDK-core/THEOplayerSDK.framework/THEOplayerSDK",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/NamiApple.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/THEOplayerSDK.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down
5 changes: 2 additions & 3 deletions ios/NamiCampaignManagerBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ class RNNamiCampaignManager: RCTEventEmitter {
actionString = "PAGE_CHANGE"
case .slide_change:
actionString = "SLIDE_CHANGE"

@unknown default:
actionString = "PURCHASE_UNKNOWN"
default:
actionString = "UNKNOWN"
}
let errorSting = paywallEvent.purchaseError?.localizedDescription

Expand Down
2 changes: 1 addition & 1 deletion ios/NamiPaywallManagerBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class RNNamiPaywallManager: RCTEventEmitter {
namiSkuType = .unknown
}

let namiSku = NamiSKU(namiId: namiId, storeId: storeId, skuType: namiSkuType, product: nil)
let namiSku = NamiSKU(namiId: namiId, storeId: storeId, skuType: namiSkuType)

do {
let dateFormatter = DateFormatter()
Expand Down
2 changes: 1 addition & 1 deletion react-native-nami-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Pod::Spec.new do |s|
s.source_files = "ios/**/*.{h,m,swift}"
s.requires_arc = true

s.dependency 'Nami', '3.1.0'
s.dependency 'Nami', '3.1.1'
s.dependency 'React'

end
3 changes: 2 additions & 1 deletion src/NamiPaywallManager.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,6 @@ export enum NamiPaywallAction {
DEEPLINK = "DEEPLINK",
TOGGLE_CHANGE = "TOGGLE_CHANGE",
PAGE_CHANGE = "PAGE_CHANGE",
SLIDE_CHANGE = "SLIDE_CHANGE"
SLIDE_CHANGE = "SLIDE_CHANGE",
UNKNOWN = "UNKNOWN"
}

0 comments on commit 704fb0a

Please sign in to comment.