https://github.com/bugfender/gradle-mapping-upload
Gradle plugin to automatically upload your application's ProGuard mappings to Bugfender
https://github.com/bugfender/gradle-mapping-upload
Last synced: about 2 months ago
JSON representation
Gradle plugin to automatically upload your application's ProGuard mappings to Bugfender
- Host: GitHub
- URL: https://github.com/bugfender/gradle-mapping-upload
- Owner: bugfender
- License: apache-2.0
- Created: 2021-09-23T13:10:46.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-05T10:44:29.000Z (over 2 years ago)
- Last Synced: 2025-01-08T16:02:20.893Z (over 1 year ago)
- Language: Kotlin
- Homepage:
- Size: 94.7 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Bugfender Android Gradle Plugin
===============================
Used to automatically upload ProGuard mapping files to [Bugfender](https://bugfender.com).
## Usage
Add the plugin to your *app* `build.gradle` file and configure it with the Symbols Upload Token, obtained from your Bugfender dashboard.
After that, every assembled app bundle will automatically send mapping file to Bugfender.
### Kotlin Gradle configuration (`app/build.gradle.kts` file)
Add the Bugfender plugin to the `plugins` section and create a new `bugfender` section, like this:
```kotlin
plugins {
id("com.android.application")
// you may have other plugins here
id("com.bugfender.upload-mapping") version "1.2.0"
}
bugfender {
symbolicationToken("")
}
```
### Groovy Gradle configuration (`app/build.gradle` file)
Add the Bugfender plugin to the `plugins` section and create a new `bugfender` section, like this:
```groovy
plugins {
id "com.android.application"
// you may have other plugins here
id "com.bugfender.upload-mapping" version "1.2.0"
}
bugfender {
symbolicationToken ""
}
```
Note: in older project configurations, it's possible this file is not under an `app` directory.
### Bugfender On-Premises
If you're using a Bugfender instance other than `dashboard.bugfender.com`, you will need to specify the URL of your instance:
In `app/build.gradle.kts` (Kotlin):
```kotlin
bugfender {
symbolicationToken("")
symbolicationURL("https://bugfender.yourcompany.com/")
}
```
Or, if you have a `app/build.gradle` (Groovy):
```groovy
bugfender {
symbolicationToken ""
symbolicationURL "https://bugfender.yourcompany.com/"
}
```
### Troubleshooting
#### Error message `org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.bugfender.upload-mapping', version: 'XXX'] was not found...`
You may need to configure the plugin repositories in your `settings.gradle.kts` or `settings.gradle` file.
Add `gradlePluginPortal()` to the `pluginManagement` > `repositories` section, like this:
```kotlin
pluginManagement {
repositories {
// you may have other repos here
gradlePluginPortal()
}
}
```
# Contributing
To use a local version that's not published to the maven central.
* Publish it to a local maven repository with `gradle publishToMavenLocal` task.
* In the test project, add `mavenLocal` to repositories in `settings.gradle`:
```groovy
pluginManagement {
repositories {
mavenLocal()
(...)
}
}
```
* Configure the plugin as described in `Usage`.