Skip to content

Commit

Permalink
Merge pull request aksonov#35 from idehub/f_slack_build_notifications
Browse files Browse the repository at this point in the history
Add slack build notifications
  • Loading branch information
cbrevik committed May 19, 2016
2 parents 52a83b2 + 3da6ec7 commit 6473c5c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
language: nodejs

install:
- npm config set spin=false
- npm config set progress=false
- npm install

- npm config set spin=false
- npm config set progress=false
- npm install
script: npm test
notifications:
slack:
secure: qYpqErlZSfd5a88azsJqRkR0dKGXJknLoNsB/MuutbMbsX2HZzRfee9pDR1CDfcLlyBInRoN2lzv2B6xfrRDFnXWB/K9sRjTmzwXVPZbI1KDIi0CpQpgioZeNu2vaqJroX++1RdBCqUE9cHPRUmgo5/SqS4Qnl13uGTyGX4rYHrRK6HC1mXZ7/rVvLg6UnXn6Mb46DSRnFEmGRNlHbw/TmaYDZpFtjxqI9UyTfgrTNaMpXkSrfXlQzYwAfJUaWNClXtk87SFx54UIeu2elCwoPYZozeGDQMi1evPnGUFXwQ+vfnJTFzwt4klr6cdZ1/spmzxzewGheG3pmUnYaKxf3QTD3ppOyE+A44/9eEMib7qUxo2cIv2KOyYLE/pAu3293GhvP4SEdBELLzVHDh4brc6nNndNetJ+GKHeXqIOx48fe3hwfZ+UDCV3KzjUbeiSfh45eEUqEGRRkRLgkB3vC8sKx101vQj2N990h50/CW0+F0nz0S7sDEVfbN9M3RuCtDmpUikTlYCEb1Y6k2uCNbgLuhV99VBVWOrUSB8aBhLPui+xYd+tSUD476mjqqowxYy5O0fbTouf2VzKgGmpyZ3DFvRgG1jbLKKBJxIQJcGq9fITTlh/BouoCAt2BK0JPG1rd+T91lovyqfMrnzrgiGrVIBHzpbh8i3V1H/vN0=
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GoogleAnalyticsBridge [![npm version](https://img.shields.io/npm/v/react-native-google-analytics-bridge.svg)](https://www.npmjs.com/package/react-native-google-analytics-bridge)
GoogleAnalyticsBridge [![npm version](https://img.shields.io/npm/v/react-native-google-analytics-bridge.svg)](https://www.npmjs.com/package/react-native-google-analytics-bridge) [![Build Status](https://travis-ci.org/idehub/react-native-google-analytics-bridge.svg?branch=master)](https://travis-ci.org/idehub/react-native-google-analytics-bridge)
=============
**Google Analytics Bridge** is built to provide an easy interface to the native Google Analytics libraries on both **iOS** and **Android**.

Expand Down Expand Up @@ -74,7 +74,7 @@ Consult [this guide](https://developer.android.com/sdk/installing/adding-package

public class MainActivity extends ReactActivity {
...

@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
Expand All @@ -87,7 +87,7 @@ Consult [this guide](https://developer.android.com/sdk/installing/adding-package
```

### Android build problem
Some people have had problems being hit with `Unknown source file : com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzmu;` after installing this (or similar modules).
Some people have had problems being hit with `Unknown source file : com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzmu;` after installing this (or similar modules).

This might be because you are using another module which also uses `play-services`, but targets a different version of `play-services`. In the `build.gradle`-file of this module, we target `com.google.android.gms:play-services-analytics:8.+`. In other words, we try to use the latest (8.x.x) version of `play-services`.

Expand All @@ -113,7 +113,7 @@ I would recommend other module authors which also depend on `play-services` to t
import GoogleAnalytics from 'react-native-google-analytics-bridge';
GoogleAnalytics.setTrackerId('UA-12345-1')
```

### trackScreenView(screenName)

* **screenName (required):** String, name of current screen
Expand Down Expand Up @@ -332,7 +332,7 @@ GoogleTagManager.openContainerWithId('GT-NZT48')
* **key (required):** String

##### Returns:
* **value:** String
* **value:** String

Retrieves a string with the given key from the opened container.

Expand All @@ -345,7 +345,7 @@ GoogleTagManager.stringForKey('key').then((val) => console.log(val));
* **key (required):** String

##### Returns:
* **value:** Boolean
* **value:** Boolean

Retrieves a boolean value with the given key from the opened container.

Expand All @@ -358,7 +358,7 @@ GoogleTagManager.boolForKey('key').then((val) => console.log(val));
* **key (required):** String

##### Returns:
* **value:** Number
* **value:** Number

Retrieves a number with the given key from the opened container.

Expand All @@ -376,11 +376,11 @@ Then you can use our Google Tag Manager implementation to pull values out of the
In this way, the different containers (A/B) the user is given, will be linked to whether or not they accomplish the given goal.

## Google Analytics Logging
There is a divergence in how the iOS and Android versions of the native library handles logging.
There is a divergence in how the iOS and Android versions of the native library handles logging.

[For Android](https://developers.google.com/analytics/devguides/collection/android/v4/advanced#logger) you can check the GA logs with your favorite terminal by using `adb logcat`.

For iOS there is a logger in the [internal library](https://developers.google.com/analytics/devguides/collection/ios/v3/advanced#logger) that writes events to the XCode output window.
For iOS there is a logger in the [internal library](https://developers.google.com/analytics/devguides/collection/ios/v3/advanced#logger) that writes events to the XCode output window.
In order to control the `logLevel` you can add an item in your `Info.plist` with the key `GAILogLevel`. The value you use is a number which corresponds to your desired log-level:

* 0: None
Expand Down

0 comments on commit 6473c5c

Please sign in to comment.