Skip to content

Commit af1c3ed

Browse files
committed
chore(Android): rename malware to malwareConfig
1 parent d0e0bf1 commit af1c3ed

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ class FreeraspReactNativeModule(private val reactContext: ReactApplicationContex
113113
.supportedAlternativeStores(androidConfig.getArraySafe("supportedAlternativeStores"))
114114
.prod(config.getBooleanSafe("isProd"))
115115

116-
if (androidConfig.hasKey("malware")) {
117-
val malwareConfig = androidConfig.getMapThrowing("malware")
116+
if (androidConfig.hasKey("malwareConfig")) {
117+
val malwareConfig = androidConfig.getMapThrowing("malwareConfig")
118118
talsecBuilder.whitelistedInstallationSources(malwareConfig.getArraySafe("whitelistedInstallationSources"))
119119
talsecBuilder.blocklistedHashes(malwareConfig.getArraySafe("blocklistedHashes"))
120120
talsecBuilder.blocklistedPermissions(malwareConfig.getNestedArraySafe("blocklistedPermissions"))

example/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const App = () => {
3030
packageName: 'com.freeraspreactnativeexample',
3131
certificateHashes: ['AKoRuyLMM91E7lX/Zqp3u4jMmd0A7hH/Iqozu0TMVd0='],
3232
// supportedAlternativeStores: ['storeOne', 'storeTwo'],
33-
malware: {
33+
malwareConfig: {
3434
blocklistedHashes: ['FgvSehLMM91E7lX/Zqp3u4jMmd0A7hH/Iqozu0TMVd0u'],
3535
blocklistedPackageNames: ['com.wultra.app.screenlogger'],
3636
blocklistedPermissions: [

src/definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type TalsecAndroidConfig = {
1111
packageName: string;
1212
certificateHashes: string[];
1313
supportedAlternativeStores?: string[];
14-
malware?: TalsecMalwareConfig;
14+
malwareConfig?: TalsecMalwareConfig;
1515
};
1616

1717
export type TalsecIosConfig = {

0 commit comments

Comments
 (0)