-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from bugsnag/v3
V3
- Loading branch information
Showing
70 changed files
with
4,438 additions
and
1,278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.xml] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
target | ||
pom.xml.releaseBackup | ||
release.properties | ||
# Created by https://www.gitignore.io | ||
|
||
### Android ### | ||
# Built application files | ||
*.apk | ||
*.ap_ | ||
|
||
# Files for the Dalvik VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# Generated files | ||
bin/ | ||
gen/ | ||
|
||
# Gradle files | ||
.gradle/ | ||
build/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Log Files | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
language: android | ||
|
||
android: | ||
components: | ||
- android-4 | ||
- android-10 | ||
- android-19 | ||
|
||
env: | ||
global: | ||
- TERM=dumb | ||
matrix: | ||
- ANDROID_TARGET=android-4 ANDROID_ABI=armeabi | ||
- ANDROID_TARGET=android-10 ANDROID_ABI=armeabi | ||
- ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a | ||
|
||
before_script: | ||
# Create and start emulator | ||
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI | ||
- emulator -avd test -no-skin -no-audio -no-window & | ||
- adb wait-for-device | ||
- while [[ `adb shell pm path android` == 'Error'* ]]; do sleep 2; done | ||
- adb shell input keyevent 82 & | ||
|
||
script: ./gradlew --info connectedAndroidTest |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
Contributing | ||
============ | ||
|
||
- [Fork](https://help.github.com/articles/fork-a-repo) the [notifier on github](https://github.com/bugsnag/bugsnag-android) | ||
- Build and test your changes | ||
- Commit and push until you are happy with your contribution | ||
- [Make a pull request](https://help.github.com/articles/using-pull-requests) | ||
- Thanks! | ||
|
||
Running `./gradlew` installs both the gradle build system and the Android SDK, | ||
but you'll need to make sure that the `adb` tool installed as part of the | ||
Android SDK is available in your `$PATH` before building, eg: | ||
|
||
``` | ||
export PATH=$PATH:~/.android-sdk/platform-tools | ||
``` | ||
|
||
|
||
Building the Libarary | ||
--------------------- | ||
|
||
You can build new `.jar` and `.aar` files as follows: | ||
|
||
```shell | ||
./gradlew :build | ||
``` | ||
|
||
Jar files are generated into `build/libs` and Aar files are generated into | ||
`build/outputs/aar`. | ||
|
||
|
||
Building the Example App | ||
------------------------ | ||
|
||
You can build and install the example app to as follows: | ||
|
||
```shell | ||
./gradlew example:installDebug | ||
``` | ||
|
||
This builds the latest version of the library and installs an app onto your | ||
device/emulator. | ||
|
||
|
||
Running Tests | ||
------------- | ||
|
||
Running the test suite requires a connected android device or emulator. | ||
|
||
You can run the test suite on a device/emulator as follows: | ||
|
||
```shell | ||
./gradlew :connectedCheck | ||
``` | ||
|
||
|
||
Releasing to Maven Central | ||
-------------------------- | ||
|
||
If you are a project maintainer, you can build and release a new version of | ||
bugsnag-android to maven central as follows: | ||
|
||
- Create a file `~/.gradle/gradle.properties` with the following contents: | ||
|
||
```ini | ||
# Your credentials for https://oss.sonatype.org/ | ||
NEXUS_USERNAME=your-nexus-username | ||
NEXUS_PASSWORD=your-nexus-password | ||
|
||
# GPG key details | ||
signing.keyId=your-gpg-key-id # From gpg --list-keys | ||
signing.password=your-gpg-key-passphrase | ||
signing.secretKeyRingFile=/Users/james/.gnupg/secring.gpg | ||
``` | ||
|
||
- Update the version numbers in `gradle.properties` and | ||
`src/main/java/com/bugsnag/android/Notifier.java`. | ||
|
||
Append `-SNAPSHOT` to the version number if performing a test build. | ||
|
||
- Build and upload the new version | ||
|
||
```shell | ||
./gradlew :uploadArchives | ||
``` |
Oops, something went wrong.