Skip to content

Commit

Permalink
Document how to avoid non-free dependencies on Android (#313)
Browse files Browse the repository at this point in the history
* Document how to avoid non-free dependencies on Android

* Replace explicit version number with placeholder
  • Loading branch information
TheLastProject authored Jun 17, 2022
1 parent 9cd70bf commit d52f338
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,20 @@ The iOS API documentation is available at https://maplibre.org/maplibre-gl-nativ
```gradle
dependencies {
...
implementation 'org.maplibre.gl:android-sdk:9.4.0'
implementation 'org.maplibre.gl:android-sdk:<version>'
...
}
```
3. Sync gradle and rebuild your app
*Note: MapLibre by default ships with the proprietary Google Play Location Services. If you want to avoid pulling proprietary dependencies into your project, you can exclude Google Play Location Services as follows:*
```gradle
implementation ('org.maplibre.gl:android-sdk:<version>') {
exclude group: 'com.google.android.gms'
}
```

### iOS

1. To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter its repository URL. You can also navigate to your target’s General pane, and in the “Frameworks, Libraries, and Embedded Content” section, click the + button, select Add Other, and choose Add Package Dependency.
Expand Down

0 comments on commit d52f338

Please sign in to comment.