Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sesposito committed Nov 22, 2024
1 parent 5be3285 commit 7f0d33d
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 36 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- Add new runtime function to get a list of user's friend status.
- Add new Follow/Unfollow runtime APIs.
- Add new NotificationsUpdate runtime API.
- Add new GetConf runtime API.
- Add new initializers function to get config values.

### Changed
- Increase limit of runtime friend listing operations to 1,000.
Expand Down
5 changes: 0 additions & 5 deletions server/runtime_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,3 @@ func (c runtimeConfig) GetGoogleAuth() runtime.GoogleAuthConfig {
func (c runtimeConfig) GetSatori() runtime.SatoriConfig {
return c.satori
}

type runtimeSocialConfigSteam struct {
publisherKey string
appId string
}
6 changes: 3 additions & 3 deletions server/runtime_javascript_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (im *RuntimeJavascriptInitModule) getConfig(r *goja.Runtime) func(goja.Func
_ = sessCfg.Set("encryption_key", rnc.GetSession().GetEncryptionKey())
_ = sessCfg.Set("token_expiry_sec", rnc.GetSession().GetTokenExpirySec())
_ = sessCfg.Set("refresh_encryption_key", rnc.GetSession().GetRefreshEncryptionKey())
_ = sessCfg.Set("refresh_token_expiry_sec", rnc.GetSession().GetRefreshEncryptionKey())
_ = sessCfg.Set("refresh_token_expiry_sec", rnc.GetSession().GetRefreshTokenExpirySec())
_ = sessCfg.Set("single_socket", rnc.GetSession().GetSingleSocket())
_ = sessCfg.Set("single_match", rnc.GetSession().GetSingleMatch())
_ = sessCfg.Set("single_party", rnc.GetSession().GetSingleParty())
Expand All @@ -320,7 +320,7 @@ func (im *RuntimeJavascriptInitModule) getConfig(r *goja.Runtime) func(goja.Func
socketCfg := r.NewObject()
_ = socketCfg.Set("server_key", rnc.GetSocket().GetServerKey())
_ = socketCfg.Set("port", rnc.GetSocket().GetPort())
_ = socketCfg.Set("address", rnc.GetSocket().GetPort())
_ = socketCfg.Set("address", rnc.GetSocket().GetAddress())
_ = socketCfg.Set("protocol", rnc.GetSocket().GetProtocol())
_ = cfgObj.Set("socket", socketCfg)

Expand Down Expand Up @@ -373,7 +373,7 @@ func (im *RuntimeJavascriptInitModule) getConfig(r *goja.Runtime) func(goja.Func
_ = iapCfg.Set("apple", iapAppleCfg)
_ = iapCfg.Set("google", iapGoogleCfg)
_ = iapCfg.Set("huawei", iapHuaweiCfg)
_ = iapCfg.Set("apple", iapAppleCfg)
_ = iapCfg.Set("facebook_instant", iapFacebookInstantCfg)
_ = cfgObj.Set("iap", iapCfg)

googleAuthCfg := r.NewObject()
Expand Down
30 changes: 15 additions & 15 deletions server/runtime_lua.go
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ func (rp *RuntimeProviderLua) Rpc(ctx context.Context, id string, headers, query

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"rpc_id": id})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeRPC, headers, queryParams, expiry, userID, username, vars, sessionID, clientIP, clientPort, lang)
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeRPC, headers, queryParams, expiry, userID, username, vars, sessionID, clientIP, clientPort, lang)
r.vm.SetContext(vmCtx)
result, fnErr, code, isCustomErr := r.InvokeFunction(RuntimeExecutionModeRPC, lf, headers, queryParams, userID, username, vars, expiry, sessionID, clientIP, clientPort, lang, payload)
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -1415,7 +1415,7 @@ func (rp *RuntimeProviderLua) BeforeRt(ctx context.Context, id string, logger *z

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"api_id": strings.TrimPrefix(id, RTAPI_PREFIX_LOWERCASE), "mode": RuntimeExecutionModeBefore.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeBefore, nil, nil, expiry, userID, username, vars, sessionID, clientIP, clientPort, lang)
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeBefore, nil, nil, expiry, userID, username, vars, sessionID, clientIP, clientPort, lang)
r.vm.SetContext(vmCtx)
result, fnErr, _, isCustomErr := r.InvokeFunction(RuntimeExecutionModeBefore, lf, nil, nil, userID, username, vars, expiry, sessionID, clientIP, clientPort, lang, envelopeMap)
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -1492,7 +1492,7 @@ func (rp *RuntimeProviderLua) AfterRt(ctx context.Context, id string, logger *za

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"api_id": strings.TrimPrefix(id, RTAPI_PREFIX_LOWERCASE), "mode": RuntimeExecutionModeAfter.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeAfter, nil, nil, expiry, userID, username, vars, sessionID, clientIP, clientPort, lang)
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeAfter, nil, nil, expiry, userID, username, vars, sessionID, clientIP, clientPort, lang)
r.vm.SetContext(vmCtx)
_, fnErr, _, isCustomErr := r.InvokeFunction(RuntimeExecutionModeAfter, lf, nil, nil, userID, username, vars, expiry, sessionID, clientIP, clientPort, lang, outMap, inMap)
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -1550,7 +1550,7 @@ func (rp *RuntimeProviderLua) BeforeReq(ctx context.Context, id string, logger *

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"api_id": strings.TrimPrefix(id, API_PREFIX_LOWERCASE), "mode": RuntimeExecutionModeBefore.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeBefore, nil, nil, expiry, userID, username, vars, "", clientIP, clientPort, "")
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeBefore, nil, nil, expiry, userID, username, vars, "", clientIP, clientPort, "")
r.vm.SetContext(vmCtx)
result, fnErr, code, isCustomErr := r.InvokeFunction(RuntimeExecutionModeBefore, lf, nil, nil, userID, username, vars, expiry, "", clientIP, clientPort, "", reqMap)
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -1646,7 +1646,7 @@ func (rp *RuntimeProviderLua) AfterReq(ctx context.Context, id string, logger *z

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"api_id": strings.TrimPrefix(id, API_PREFIX_LOWERCASE), "mode": RuntimeExecutionModeAfter.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeAfter, nil, nil, expiry, userID, username, vars, "", clientIP, clientPort, "")
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeAfter, nil, nil, expiry, userID, username, vars, "", clientIP, clientPort, "")
r.vm.SetContext(vmCtx)
_, fnErr, _, isCustomErr := r.InvokeFunction(RuntimeExecutionModeAfter, lf, nil, nil, userID, username, vars, expiry, "", clientIP, clientPort, "", resMap, reqMap)
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -1709,7 +1709,7 @@ func (rp *RuntimeProviderLua) MatchmakerMatched(ctx context.Context, entries []*

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"mode": RuntimeExecutionModeMatchmaker.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeMatchmaker, nil, nil, 0, "", "", nil, "", "", "", "")
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeMatchmaker, nil, nil, 0, "", "", nil, "", "", "", "")
r.vm.SetContext(vmCtx)
retValue, err, _, _ := r.invokeFunction(r.vm, lf, luaCtx, entriesTable)
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -1800,7 +1800,7 @@ func (rp *RuntimeProviderLua) TournamentEnd(ctx context.Context, tournament *api

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"mode": RuntimeExecutionModeTournamentEnd.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeTournamentEnd, nil, nil, 0, "", "", nil, "", "", "", "")
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeTournamentEnd, nil, nil, 0, "", "", nil, "", "", "", "")
r.vm.SetContext(vmCtx)
retValue, err, _, _ := r.invokeFunction(r.vm, lf, luaCtx, tournamentTable, lua.LNumber(end), lua.LNumber(reset))
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -1872,7 +1872,7 @@ func (rp *RuntimeProviderLua) TournamentReset(ctx context.Context, tournament *a

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"mode": RuntimeExecutionModeTournamentReset.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeTournamentReset, nil, nil, 0, "", "", nil, "", "", "", "")
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeTournamentReset, nil, nil, 0, "", "", nil, "", "", "", "")
r.vm.SetContext(vmCtx)
retValue, err, _, _ := r.invokeFunction(r.vm, lf, luaCtx, tournamentTable, lua.LNumber(end), lua.LNumber(reset))
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -1926,7 +1926,7 @@ func (rp *RuntimeProviderLua) LeaderboardReset(ctx context.Context, leaderboard

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"mode": RuntimeExecutionModeLeaderboardReset.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeLeaderboardReset, nil, nil, 0, "", "", nil, "", "", "", "")
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeLeaderboardReset, nil, nil, 0, "", "", nil, "", "", "", "")
r.vm.SetContext(vmCtx)
retValue, err, _, _ := r.invokeFunction(r.vm, lf, luaCtx, leaderboardTable, lua.LNumber(reset))
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -1959,7 +1959,7 @@ func (rp *RuntimeProviderLua) Shutdown(ctx context.Context) {

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"mode": RuntimeExecutionModeShutdown.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeShutdown, nil, nil, 0, "", "", nil, "", "", "", "")
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeShutdown, nil, nil, 0, "", "", nil, "", "", "", "")
r.vm.SetContext(vmCtx)
_, err, _, _ = r.invokeFunction(r.vm, lf, luaCtx)
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -1987,7 +1987,7 @@ func (rp *RuntimeProviderLua) PurchaseNotificationApple(ctx context.Context, pur

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"mode": RuntimeExecutionModePurchaseNotificationApple.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModePurchaseNotificationApple, nil, nil, 0, "", "", nil, "", "", "", "")
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModePurchaseNotificationApple, nil, nil, 0, "", "", nil, "", "", "", "")
r.vm.SetContext(vmCtx)
retValue, err, _, _ := r.invokeFunction(r.vm, lf, luaCtx, purchaseTable, lua.LString(providerPayload))
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -2021,7 +2021,7 @@ func (rp *RuntimeProviderLua) SubscriptionNotificationApple(ctx context.Context,

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"mode": RuntimeExecutionModeSubscriptionNotificationApple.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeSubscriptionNotificationApple, nil, nil, 0, "", "", nil, "", "", "", "")
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeSubscriptionNotificationApple, nil, nil, 0, "", "", nil, "", "", "", "")
r.vm.SetContext(vmCtx)
retValue, err, _, _ := r.invokeFunction(r.vm, lf, luaCtx, subscriptionTable, lua.LString(providerPayload))
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -2055,7 +2055,7 @@ func (rp *RuntimeProviderLua) PurchaseNotificationGoogle(ctx context.Context, pu

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"mode": RuntimeExecutionModePurchaseNotificationGoogle.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModePurchaseNotificationGoogle, nil, nil, 0, "", "", nil, "", "", "", "")
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModePurchaseNotificationGoogle, nil, nil, 0, "", "", nil, "", "", "", "")
r.vm.SetContext(vmCtx)
retValue, err, _, _ := r.invokeFunction(r.vm, lf, luaCtx, purchaseTable, lua.LString(providerPayload))
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -2089,7 +2089,7 @@ func (rp *RuntimeProviderLua) SubscriptionNotificationGoogle(ctx context.Context

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"mode": RuntimeExecutionModeSubscriptionNotificationGoogle.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeSubscriptionNotificationGoogle, nil, nil, 0, "", "", nil, "", "", "", "")
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeSubscriptionNotificationGoogle, nil, nil, 0, "", "", nil, "", "", "", "")
r.vm.SetContext(vmCtx)
retValue, err, _, _ := r.invokeFunction(r.vm, lf, luaCtx, subscriptionTable, lua.LString(providerPayload))
r.vm.SetContext(context.Background())
Expand Down Expand Up @@ -2146,7 +2146,7 @@ func (rp *RuntimeProviderLua) StorageIndexFilter(ctx context.Context, indexName

// Set context value used for logging
vmCtx := context.WithValue(ctx, ctxLoggerFields{}, map[string]string{"mode": RuntimeExecutionModeStorageIndexFilter.String()})
vmCtx = NewRuntimeGoContext(ctx, r.node, r.version, r.env, RuntimeExecutionModeStorageIndexFilter, nil, nil, 0, "", "", nil, "", "", "", "")
vmCtx = NewRuntimeGoContext(vmCtx, r.node, r.version, r.env, RuntimeExecutionModeStorageIndexFilter, nil, nil, 0, "", "", nil, "", "", "", "")
r.vm.SetContext(vmCtx)
retValue, err, _, _ := r.invokeFunction(r.vm, lf, luaCtx, writeTable)
r.vm.SetContext(context.Background())
Expand Down
24 changes: 12 additions & 12 deletions server/runtime_lua_nakama.go
Original file line number Diff line number Diff line change
Expand Up @@ -2469,23 +2469,23 @@ func (n *RuntimeLuaNakamaModule) accountGetId(l *lua.LState) int {
metadataMap := make(map[string]interface{})
err = json.Unmarshal([]byte(account.User.Metadata), &metadataMap)
if err != nil {
l.RaiseError(fmt.Sprintf("failed to convert metadata to json: %s", err.Error()))
l.RaiseError("failed to convert metadata to json: %s", err.Error())
return 0
}
metadataTable := RuntimeLuaConvertMap(l, metadataMap)
accountTable.RawSetString("metadata", metadataTable)

userTable, err := userToLuaTable(l, account.User)
if err != nil {
l.RaiseError(fmt.Sprintf("failed to convert user data to lua table: %s", err.Error()))
l.RaiseError("failed to convert user data to lua table: %s", err.Error())
return 0
}
accountTable.RawSetString("user", userTable)

walletMap := make(map[string]int64)
err = json.Unmarshal([]byte(account.Wallet), &walletMap)
if err != nil {
l.RaiseError(fmt.Sprintf("failed to convert wallet to json: %s", err.Error()))
l.RaiseError("failed to convert wallet to json: %s", err.Error())
return 0
}
walletTable := RuntimeLuaConvertMapInt64(l, walletMap)
Expand Down Expand Up @@ -2599,7 +2599,7 @@ func (n *RuntimeLuaNakamaModule) accountsGetId(l *lua.LState) int {
metadataMap := make(map[string]interface{})
err = json.Unmarshal([]byte(account.User.Metadata), &metadataMap)
if err != nil {
l.RaiseError(fmt.Sprintf("failed to convert metadata to json: %s", err.Error()))
l.RaiseError("failed to convert metadata to json: %s", err.Error())
return 0
}
metadataTable := RuntimeLuaConvertMap(l, metadataMap)
Expand Down Expand Up @@ -10741,7 +10741,7 @@ func (n *RuntimeLuaNakamaModule) storageIndexList(l *lua.LState) int {
func (n *RuntimeLuaNakamaModule) getConfig(l *lua.LState) int {
rnc, err := n.config.GetRuntimeConfig()
if err != nil {
l.RaiseError(fmt.Sprintf("failed to get config: %s", err.Error()))
l.RaiseError("failed to get config: %s", err.Error())
return 0
}

Expand All @@ -10753,28 +10753,28 @@ func (n *RuntimeLuaNakamaModule) getConfig(l *lua.LState) int {
lgCfg.RawSetString("level", lua.LString(rnc.GetLogger().GetLevel()))
cfgObj.RawSetString("logger", lgCfg)

sessCfg := l.CreateTable(0, 9)
sessCfg := l.CreateTable(0, 8)
sessCfg.RawSetString("encryption_key", lua.LString(rnc.GetSession().GetEncryptionKey()))
sessCfg.RawSetString("token_expiry_sec", lua.LNumber(rnc.GetSession().GetTokenExpirySec()))
sessCfg.RawSetString("refresh_encryption_key", lua.LString(rnc.GetSession().GetRefreshEncryptionKey()))
sessCfg.RawSetString("refresh_token_expiry_sec", lua.LString(rnc.GetSession().GetRefreshEncryptionKey()))
sessCfg.RawSetString("refresh_token_expiry_sec", lua.LNumber(rnc.GetSession().GetRefreshTokenExpirySec()))
sessCfg.RawSetString("single_socket", lua.LBool(rnc.GetSession().GetSingleSocket()))
sessCfg.RawSetString("single_match", lua.LBool(rnc.GetSession().GetSingleMatch()))
sessCfg.RawSetString("single_party", lua.LBool(rnc.GetSession().GetSingleParty()))
sessCfg.RawSetString("single_session", lua.LBool(rnc.GetSession().GetSingleSession()))
cfgObj.RawSetString("session", sessCfg)

socketCfg := l.CreateTable(0, 5)
socketCfg := l.CreateTable(0, 4)
socketCfg.RawSetString("server_key", lua.LString(rnc.GetSocket().GetServerKey()))
socketCfg.RawSetString("port", lua.LNumber(rnc.GetSocket().GetPort()))
socketCfg.RawSetString("address", lua.LString(rnc.GetSocket().GetPort()))
socketCfg.RawSetString("address", lua.LString(rnc.GetSocket().GetAddress()))
socketCfg.RawSetString("protocol", lua.LString(rnc.GetSocket().GetProtocol()))
cfgObj.RawSetString("socket", socketCfg)

// Social
steamCfg := l.CreateTable(0, 2)
steamCfg.RawSetString("publisher_key", lua.LString(rnc.GetSocial().GetSteam().GetPublisherKey()))
steamCfg.RawSetString("app_id", lua.LString(rnc.GetSocial().GetSteam().GetAppID()))
steamCfg.RawSetString("app_id", lua.LNumber(rnc.GetSocial().GetSteam().GetAppID()))

fbInstantCfg := l.CreateTable(0, 1)
fbInstantCfg.RawSetString("app_secret", lua.LString(rnc.GetSocial().GetFacebookInstantGame().GetAppSecret()))
Expand Down Expand Up @@ -10810,7 +10810,7 @@ func (n *RuntimeLuaNakamaModule) getConfig(l *lua.LState) int {
iapGoogleCfg.RawSetString("client_email", lua.LString(rnc.GetIAP().GetGoogle().GetClientEmail()))
iapGoogleCfg.RawSetString("private_key", lua.LString(rnc.GetIAP().GetGoogle().GetPrivateKey()))
iapGoogleCfg.RawSetString("notifications_endpoint_id", lua.LString(rnc.GetIAP().GetGoogle().GetNotificationsEndpointId()))
iapGoogleCfg.RawSetString("refund_check_period_min", lua.LString(rnc.GetIAP().GetGoogle().GetRefundCheckPeriodMin()))
iapGoogleCfg.RawSetString("refund_check_period_min", lua.LNumber(rnc.GetIAP().GetGoogle().GetRefundCheckPeriodMin()))
iapGoogleCfg.RawSetString("package_name", lua.LString(rnc.GetIAP().GetGoogle().GetPackageName()))

iapHuaweiCfg := l.CreateTable(0, 3)
Expand All @@ -10824,7 +10824,7 @@ func (n *RuntimeLuaNakamaModule) getConfig(l *lua.LState) int {
iapCfg.RawSetString("apple", iapAppleCfg)
iapCfg.RawSetString("google", iapGoogleCfg)
iapCfg.RawSetString("huawei", iapHuaweiCfg)
iapCfg.RawSetString("apple", iapAppleCfg)
iapCfg.RawSetString("facebook_instant", iapFacebookInstantCfg)
cfgObj.RawSetString("iap", iapCfg)

googleAuthCfg := l.CreateTable(0, 1)
Expand Down

0 comments on commit 7f0d33d

Please sign in to comment.