Skip to content

Commit 5217401

Browse files
committed
feat(Android): update build.gradle
1 parent 9906eb9 commit 5217401

File tree

3 files changed

+15
-23
lines changed

3 files changed

+15
-23
lines changed

README.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,7 @@ or
8888

8989
### Android
9090

91-
freeRASP needs to have access to the maven repository containing freeRASP. Add following lines into the `android/build.gradle` file, in the `allprojects.repositories` section:
92-
93-
```gradle
94-
allprojects {
95-
repositories {
96-
google()
97-
mavenCentral()
98-
... your repositories
99-
maven{url = uri("https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp")}
100-
maven{url = uri("https://developer.huawei.com/repo/")}
101-
maven{url = uri("https://jitpack.io")}
102-
}
103-
}
104-
```
91+
_All dependencies of freeRASP for Android are resolved automatically._
10592

10693
### iOS
10794

@@ -265,14 +252,18 @@ When freeRASP initializes correctly, you should see `freeRASP initialized` messa
265252
_You can override this default behavior by extending the `actions` object with `'started'` key (to change action after successful initialization), and `'initializationError'` key (to set up action after unsuccessful initialization)_
266253
267254
## Step 6: Additional note about obfuscation
255+
268256
The freeRASP contains public API, so the integration process is as simple as possible. Unfortunately, this public API also creates opportunities for the attacker to use publicly available information to interrupt freeRASP operations or modify your custom reaction implementation in threat callbacks. In order for freeRASP to be as effective as possible, it is highly recommended to apply obfuscation to the final package/application, making the public API more difficult to find and also partially randomized for each application so it cannot be automatically abused by generic hooking scripts.
269257
270258
### Android
259+
271260
The majority of Android projects support code shrinking and obfuscation without any additional need for setup. The owner of the project can define the set of rules that are usually automatically used when the application is built in the release mode. For more information, please visit the official documentation
272-
* https://developer.android.com/studio/build/shrink-code
273-
* https://www.guardsquare.com/manual/configuration/usage
261+
262+
- https://developer.android.com/studio/build/shrink-code
263+
- https://www.guardsquare.com/manual/configuration/usage
274264
275265
You can make sure, that the obfuscation is enabled by checking the value of **minifyEnabled** property in your **module's build.gradle** file.
266+
276267
```gradle
277268
android {
278269
...
@@ -287,7 +278,6 @@ android {
287278
}
288279
```
289280
290-
291281
## Step 7: User Data Policies
292282
293283
Google Play [requires](https://support.google.com/googleplay/android-developer/answer/10787469?hl=en) all app publishers to declare how they collect and handle user data for the apps they publish on Google Play. They should inform users properly of the data collected by the apps and how the data is shared and processed. Therefore, Google will reject the apps which do not comply with the policy.

android/build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,14 @@ android {
6161
repositories {
6262
mavenCentral()
6363
google()
64-
maven{url = uri("https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp")}
65-
maven{url = uri("https://developer.huawei.com/repo/")}
66-
maven{url = uri("https://jitpack.io")}
64+
}
65+
66+
rootProject.allprojects {
67+
repositories {
68+
maven{url "https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp"}
69+
maven{url "https://developer.huawei.com/repo/"}
70+
maven{url "https://jitpack.io"}
71+
}
6772
}
6873

6974
def kotlin_version = getExtOrDefault("kotlinVersion")

example/android/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,5 @@ allprojects {
4646
}
4747
}
4848
google()
49-
maven { url 'https://www.jitpack.io' }
50-
maven{url = uri("https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp")}
51-
maven{url = uri("https://developer.huawei.com/repo/")}
5249
}
5350
}

0 commit comments

Comments
 (0)