GantMan / jail-monkey

A React Native library for identifying if a phone is rooted or mocking locations
MIT License
568 stars 143 forks source link

New gradle versions can't build app using jail-monkey #274

Open UgurGumushan opened 2 months ago

UgurGumushan commented 2 months ago

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch jail-monkey@2.8.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/jail-monkey/android/build.gradle b/node_modules/jail-monkey/android/build.gradle
index 158b55d..4742858 100644
--- a/node_modules/jail-monkey/android/build.gradle
+++ b/node_modules/jail-monkey/android/build.gradle
@@ -5,6 +5,7 @@ def safeExtGet(prop, fallback) {
 apply plugin: 'com.android.library'

 android {
+    namespace "com.gantix.JailMonkey"
     compileSdkVersion safeExtGet('compileSdkVersion', 31)
     buildToolsVersion safeExtGet('buildToolsVersion', "31.0.0")

This issue body was partially generated by patch-package.

Naandalist commented 4 weeks ago

I find this npm module has updated here ➡️ https://www.npmjs.com/package/jail-monkey-new