Skip to content

Commit

Permalink
Update build.gradle to be able to gradle sync the project.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajiv-singaseni committed Jan 1, 2025
1 parent a498b17 commit 147a7e8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
buildscript {
ext {
kotlin_version = '1.8.0'
compose_version = '1.4.0'
}

repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.6.1'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.20'
}
}

Expand Down
6 changes: 6 additions & 0 deletions protect/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ android {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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;
Expand All @@ -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; }
Expand Down

0 comments on commit 147a7e8

Please sign in to comment.