diff --git a/build.gradle b/build.gradle index 023e9c9..5855d33 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,9 @@ buildscript { + ext { + kotlin_version = '1.8.0' + compose_version = '1.4.0' + } + repositories { google() mavenCentral() @@ -6,6 +11,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:8.6.1' + classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.20' } } diff --git a/protect/build.gradle b/protect/build.gradle index facd3fb..90762f1 100644 --- a/protect/build.gradle +++ b/protect/build.gradle @@ -25,6 +25,12 @@ android { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } + publishing { + singleVariant("release") { + withSourcesJar() + withJavadocJar() + } + } } dependencies { diff --git a/protect/src/main/java/com/webileapps/safeguard/SecurityChecker.java b/protect/src/main/java/com/webileapps/safeguard/SecurityChecker.java index 95650a8..6ecff80 100644 --- a/protect/src/main/java/com/webileapps/safeguard/SecurityChecker.java +++ b/protect/src/main/java/com/webileapps/safeguard/SecurityChecker.java @@ -51,9 +51,9 @@ public static class SecurityConfig { private final SecurityCheckState developerOptionsCheck; private final SecurityCheckState malwareCheck; private final SecurityCheckState tamperingCheck; + private final SecurityCheckState appSpoofingCheck; private final SecurityCheckState networkSecurityCheck; private final SecurityCheckState screenSharingCheck; - private final SecurityCheckState appSpoofingCheck; private final SecurityCheckState keyloggerCheck; private final SecurityCheckState appSignature; private final SecurityCheckState ongoingCallCheck; @@ -66,9 +66,9 @@ public SecurityConfig() { SecurityCheckState.ERROR, // developerOptionsCheck SecurityCheckState.ERROR, // malwareCheck SecurityCheckState.ERROR, // tamperingCheck + SecurityCheckState.WARNING, // appSpoofingCheck SecurityCheckState.WARNING, // networkSecurityCheck SecurityCheckState.WARNING, // screenSharingCheck - SecurityCheckState.WARNING, // appSpoofingCheck SecurityCheckState.WARNING, // keyloggerCheck SecurityCheckState.WARNING, // appSignature SecurityCheckState.WARNING, // ongoingCallCheck @@ -82,11 +82,10 @@ public SecurityConfig( SecurityCheckState developerOptionsCheck, SecurityCheckState malwareCheck, SecurityCheckState tamperingCheck, + SecurityCheckState appSpoofingCheck, SecurityCheckState networkSecurityCheck, SecurityCheckState screenSharingCheck, - SecurityCheckState appSpoofingCheck, SecurityCheckState keyloggerCheck, - SecurityCheckState appSignature, SecurityCheckState ongoingCallCheck, String expectedPackageName, String expectedSignature @@ -95,11 +94,11 @@ public SecurityConfig( this.developerOptionsCheck = developerOptionsCheck; this.malwareCheck = malwareCheck; this.tamperingCheck = tamperingCheck; + this.appSpoofingCheck = appSpoofingCheck; this.networkSecurityCheck = networkSecurityCheck; this.screenSharingCheck = screenSharingCheck; - this.appSpoofingCheck = appSpoofingCheck; this.keyloggerCheck = keyloggerCheck; - this.appSignature = appSignature; + this.appSignature = SecurityCheckState.WARNING; // Default value this.ongoingCallCheck = ongoingCallCheck; this.expectedPackageName = expectedPackageName; this.expectedSignature = expectedSignature; @@ -110,9 +109,9 @@ public SecurityConfig( public SecurityCheckState getDeveloperOptionsCheck() { return developerOptionsCheck; } public SecurityCheckState getMalwareCheck() { return malwareCheck; } public SecurityCheckState getTamperingCheck() { return tamperingCheck; } + public SecurityCheckState getAppSpoofingCheck() { return appSpoofingCheck; } public SecurityCheckState getNetworkSecurityCheck() { return networkSecurityCheck; } public SecurityCheckState getScreenSharingCheck() { return screenSharingCheck; } - public SecurityCheckState getAppSpoofingCheck() { return appSpoofingCheck; } public SecurityCheckState getKeyloggerCheck() { return keyloggerCheck; } public SecurityCheckState getAppSignature() { return appSignature; } public SecurityCheckState getOngoingCallCheck() { return ongoingCallCheck; }