util

package
v0.0.0-...-ee4eeff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateKeystoreHash

func CalculateKeystoreHash(keystorePath string) (hash string)

func ConfigureIOSCertificates

func ConfigureIOSCertificates(config *Config)

func CreateKeystore

func CreateKeystore(config *Config)

func ParseAndroidManifest

func ParseAndroidManifest(config *Config)

func ParseCordovaConfig

func ParseCordovaConfig(config *Config)

func ParseNativeScriptConfig

func ParseNativeScriptConfig(config *Config)

func PrepareAndroidPaths

func PrepareAndroidPaths(config *Config)

func PrepareIosPaths

func PrepareIosPaths(config *Config)

func PrintAndroidManifestUpdateHint

func PrintAndroidManifestUpdateHint(config *Config)

func PrintIosInfoPlistUpdateHint

func PrintIosInfoPlistUpdateHint(config *Config)

func PrintSuccessMessage

func PrintSuccessMessage(config *Config, debugDetection bool, rootDetection bool, debugLogs bool, tamperingProtection bool)

func ReadCordovaSecurityPreference

func ReadCordovaSecurityPreference(preferences []cordovaPreference, preferenceName string, defaultValue bool) bool

func ReadNativeScriptSecurityPreferences

func ReadNativeScriptSecurityPreferences(config *Config) (rootDetection bool, debugDetection bool, debugLogs bool)

func ReplaceManifest

func ReplaceManifest(manifest string, shouldRemoveIntentFilter bool, redirectUrl *url.URL) string

func SetAppTarget

func SetAppTarget(appTarget string, config *Config)

func SetFlavorName

func SetFlavorName(flavorName string, config *Config)

func VerifyTsZipContents

func VerifyTsZipContents(config *Config)

func WriteAndroidAppScheme

func WriteAndroidAppScheme(config *Config)

func WriteAndroidConfigModel

func WriteAndroidConfigModel(config *Config)

func WriteAndroidSecurityController

func WriteAndroidSecurityController(config *Config, debugDetection bool, rootDetection bool, debugLogs bool, tamperingProtection bool)

func WriteIOSConfigModel

func WriteIOSConfigModel(config *Config)

func WriteIOSSecurityController

func WriteIOSSecurityController(config *Config, debugDetection bool, rootDetection bool, debugLogs bool, tamperingProtection bool)

func WriteIosConfigModel

func WriteIosConfigModel(modelMFile []byte, modelHFile []byte, config *Config)

Types

type Config

type Config struct {
	Options                  *options
	Certs                    map[string]string
	Cordova                  cordovaConfig
	NativeScript             nativeScriptConfig
	AndroidManifest          androidManifest
	AppDir                   string
	AppTarget                string
	FlavorName               string
	ConfigureForCordova      bool
	ConfigureForNativeScript bool
}

func ParseConfig

func ParseConfig(appDir string, configPath string) (config *Config)

type NS

type NS struct {
	ID string `json:"id"`
}

type OneginiPreferences

type OneginiPreferences struct {
	RootDetectionEnabled  *bool `json:"root-detection-enabled,omitempty"`
	DebugDetectionEnabled *bool `json:"debug-detection-enabled,omitempty"`
	DebugLogsEnabled      bool  `json:"debug-logs-enabled"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL