Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build 12 #9

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Demo/components/CampaignView.brs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ sub onVisibleChange(event as dynamic)
if isVisible
' Register the current view to load the paywallScreen on top of it.
m.namiPaywallManager.callFunc("registerPaywallParentView", m.top)
m.namiCampaignManager.callFunc("registerAvailableCampaignsHandler", m.top, "availableCampaignsHandlerCallback")
m.llCampaign.setFocus(true)
else
m.namiPaywallManager.callFunc("deRegisterPaywallParentView", m.top)
Expand Down Expand Up @@ -155,7 +156,6 @@ end sub
sub refreshData()
m.llCampaign.visible = false
m.Scene.callFunc("showLoader")
m.namiCampaignManager.callFunc("registerAvailableCampaignsHandler", m.top, "availableCampaignsHandlerCallback")
m.namiCampaignManager.callFunc("refresh")
end sub

Expand Down
2 changes: 1 addition & 1 deletion Demo/components/MainScene.brs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sub showContentView(isReady as boolean)
m.namiCustomerManager = m.namiManager.namiCustomerManager
m.namiPaywallManager = m.namiManager.namiPaywallManager
m.namiEntitlementManager = m.namiManager.namiEntitlementManager

m.contentViewControl.initialize = true
m.contentViewControl.visible = true
else
Expand Down
9 changes: 9 additions & 0 deletions Demo/components/NamiDataSource.brs
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,27 @@ sub initializeNamiSDKValues()
m.namiPaywallManager.callFunc("registerBuySkuHandler", m.top)
m.namiPaywallManager.callFunc("registerSignInHandler", m.top)
m.namiPaywallManager.callFunc("registerRestoreRequestHandler", m.top)
m.namiPaywallManager.callFunc("registerDeeplinkActionHandler", m.top)
m.namiCustomerManager.callFunc("registerAccountStateHandler", m.top)
m.namiCustomerManager.callFunc("setCustomerDataPlatformId", "aaaa")
end sub

function registerRestoreHandlerCallback()
' Restore purchase process
print "NamiDataSource : registerRestoreHandlerCallback: restore pressed"
m.namiPaywallManager.callFunc("dismiss")
end function

function registerSignInHandlerCallback()
' Sign in process
print "NamiDataSource : registerSignInHandlerCallback: sign in pressed"
m.namiPaywallManager.callFunc("dismiss")
end function

function deeplinkActionHandlerCallback(url)
' deeplink url open process
print "NamiDataSource : deeplinkActionHandlerCallback : deeplink url : " url
m.namiPaywallManager.callFunc("dismiss")
end function

function registerBuySkuHandlerCallback(sku as dynamic)
Expand Down
1 change: 1 addition & 0 deletions Demo/components/NamiDataSource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
<function name="paywallActionHandler" />
<function name="registerSignInHandlerCallback" />
<function name="registerRestoreHandlerCallback" />
<function name="deeplinkActionHandlerCallback" />
</interface>
</component>
2 changes: 1 addition & 1 deletion Demo/manifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title=Nami SDK Demo
major_version=1
minor_version=0
build_version=082520231
build_version=090120230

mm_icon_focus_hd=pkg:/images/icon_hd.png
mm_icon_side_hd=pkg:/images/icon_hd.png
Expand Down
2 changes: 1 addition & 1 deletion Demo/source/data/appData.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"namiDummyProductsFilePath": "pkg:/source/data/dummyProducts.json",
"namiInitialConfigFilePath": "pkg:/source/data/initialConfig.json",
"namiSDKPath": "https://packages.namiml.com/NamiSDK/Roku/NamiRoku.pkg"
}
}
Loading