Skip to content

Commit cf406a5

Browse files
authored
Merge pull request #102 from Vydia/readme-customize-android-build=props
Add instructions for customizing Android build properties
2 parents 7e8760b + b4fa113 commit cf406a5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,35 @@ Event Data
243243
|---|---|---|---|
244244
|`id`|string|Required|The ID of the upload.|
245245

246+
# Customizing Android Build Properties
247+
You may want to customize the `compileSdk, buildToolsVersion, and targetSdkVersion` versions used by this package. For that, add this to `android/build.gradle`:
248+
249+
```
250+
ext {
251+
targetSdkVersion = 23
252+
compileSdkVersion = 23
253+
buildToolsVersion = '23.0.2'
254+
}
255+
```
256+
257+
Add it above `allProjects` and you're good. Your `android/build.gradle` might then resemble:
258+
```
259+
buildscript {
260+
repositories {
261+
jcenter()
262+
}
263+
}
264+
265+
ext {
266+
targetSdkVersion = 27
267+
compileSdkVersion = 27
268+
buildToolsVersion = '23.0.2'
269+
}
270+
271+
allprojects {
272+
273+
```
274+
246275
# FAQs
247276

248277
Is there an example/sandbox app to test out this package?

0 commit comments

Comments
 (0)