Skip to content

Commit

Permalink
Merge pull request #35 from bugsnag/v3
Browse files Browse the repository at this point in the history
V3
  • Loading branch information
loopj committed Dec 21, 2014
2 parents f0fb442 + 98d13db commit 3d015be
Show file tree
Hide file tree
Showing 70 changed files with 4,438 additions and 1,278 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
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
32 changes: 29 additions & 3 deletions .gitignore
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
25 changes: 25 additions & 0 deletions .travis.yml
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
8 changes: 0 additions & 8 deletions AndroidManifest.xml

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
3.0.0
-----
- Removed dependency on `bugsnag-java`
- Reduced memory usage, using lazy-loading and streaming
- Easier "top activity" tracking
- Device brand information is now collected (eg. "Samsung")
- SSL enabled by default
- Adding custom diagnostics (MetaData) is now easier to use
- Fixed app name detection
- Uses Android's new build system (gradle based)
- Added unit tests, automatically run on travis.ci
- Severity is now an Enum for type-safety

2.2.3
-----
- Bump bugsnag-java dependency to fix prototype mismatch bug
Expand Down
85 changes: 85 additions & 0 deletions CONTRIBUTING.md
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
```
Loading

0 comments on commit 3d015be

Please sign in to comment.