|
2 | 2 |
|
3 | 3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4 | 4 |
|
5 |
| -<a name="0.0.1-beta.2"></a> |
6 |
| -## [0.0.1-beta.2](https://github.com/segmentio/analytics-react-native/compare/v0.0.1-beta.1...v0.0.1-beta.2) (2018-10-24) |
| 5 | +<a name="0.0.1-beta.3"></a> |
7 | 6 |
|
| 7 | +## [0.0.1-beta.3](https://github.com/segmentio/analytics-react-native/compare/v0.0.1-beta.2...v0.0.1-beta.3) (2018-12-12) |
8 | 8 |
|
9 |
| -### Bug Fixes |
| 9 | +- Improve iOS support for users without Cocoapods ([#27](https://github.com/segmentio/analytics-react-native/pull/27)) ([e90a58c](https://github.com/segmentio/analytics-react-native/commit/e90a58c)), closes [#17](https://github.com/segmentio/analytics-react-native/issues/17) and [#19](https://github.com/segmentio/analytics-react-native/issues/19) |
10 | 10 |
|
11 |
| -* **android:** pull android tool versions from root project ([#12](https://github.com/segmentio/analytics-react-native/issues/12)) ([3f1eb3c](https://github.com/segmentio/analytics-react-native/commit/3f1eb3c)), closes [/github.com/frostney/react-native-create-library/blob/master/templates/android.js#L28](https://github.com//github.com/frostney/react-native-create-library/blob/master/templates/android.js/issues/L28) |
12 |
| -* **core:** fix TypeScript typings ([fe7933c](https://github.com/segmentio/analytics-react-native/commit/fe7933c)), closes [#11](https://github.com/segmentio/analytics-react-native/issues/11) |
| 11 | +### BREAKING CHANGES |
13 | 12 |
|
| 13 | +- We've improved iOS support for non-Cocoapods users. You do not need to follow these steps if you are using Cocoapods. |
14 | 14 |
|
15 |
| -### Features |
| 15 | +### Migration instructions |
16 | 16 |
|
17 |
| -* **core:** export TypeScript public interfaces ([9978cd7](https://github.com/segmentio/analytics-react-native/commit/9978cd7)) |
| 17 | +- Remove `Analytics.framework` from your Xcode project |
| 18 | +- Remove `Analytics.framework` from `Embedded Binaries` |
| 19 | +- Follow [Current instructions](#current-instructions) |
18 | 20 |
|
| 21 | +### Current instructions |
19 | 22 |
|
| 23 | +1. Add `analytics-ios` as a npm dependency: `yarn add @segment/analytics-ios@github:segmentio/analytics-ios#3.6.10` |
| 24 | +2. In the `General` tab for your project, search for `Embedded Binaries` and add the `Analytics.framework` |
| 25 | +  |
20 | 26 |
|
21 |
| -<a name="0.0.1-beta.1"></a> |
22 |
| -## [0.0.1-beta.1](https://github.com/segmentio/analytics-react-native/compare/v0.0.1-beta.0...v0.0.1-beta.1) (2018-10-23) |
| 27 | +### Previous instructions |
23 | 28 |
|
| 29 | +1. Download the [latest built SDK](https://github.com/segmentio/analytics-ios/releases), and unzip the zip file. |
| 30 | +2. Drag the unzipped Analytics.framework folder into your Xcode project. |
| 31 | + Make sure to check `Copy items if needed`. |
| 32 | +  |
| 33 | +3. In the `General` tab for your project, search for `Embedded Binaries` and add the `Analytics.framework`. |
| 34 | +  |
24 | 35 |
|
25 |
| -### Bug Fixes |
| 36 | +<a name="0.0.1-beta.2"></a> |
| 37 | + |
| 38 | +## [0.0.1-beta.2](https://github.com/segmentio/analytics-react-native/compare/v0.0.1-beta.1...v0.0.1-beta.2) (2018-10-24) |
26 | 39 |
|
27 |
| -* **bridge:** improve missing native module error ([#5](https://github.com/segmentio/analytics-react-native/issues/5)) ([0a03617](https://github.com/segmentio/analytics-react-native/commit/0a03617)) |
28 |
| -* **integrations:** fix TypeScript typings ([#8](https://github.com/segmentio/analytics-react-native/issues/8)) ([7535510](https://github.com/segmentio/analytics-react-native/commit/7535510)), closes [#6](https://github.com/segmentio/analytics-react-native/issues/6) |
| 40 | +### Bug Fixes |
29 | 41 |
|
| 42 | +- **android:** pull android tool versions from root project ([#12](https://github.com/segmentio/analytics-react-native/issues/12)) ([3f1eb3c](https://github.com/segmentio/analytics-react-native/commit/3f1eb3c)), closes [/github.com/frostney/react-native-create-library/blob/master/templates/android.js#L28](https://github.com//github.com/frostney/react-native-create-library/blob/master/templates/android.js/issues/L28) |
| 43 | +- **core:** fix TypeScript typings ([fe7933c](https://github.com/segmentio/analytics-react-native/commit/fe7933c)), closes [#11](https://github.com/segmentio/analytics-react-native/issues/11) |
30 | 44 |
|
31 | 45 | ### Features
|
32 | 46 |
|
33 |
| -* **client:** use object-based configuration ([#7](https://github.com/segmentio/analytics-react-native/issues/7)) ([6a281f4](https://github.com/segmentio/analytics-react-native/commit/6a281f4)) |
| 47 | +- **core:** export TypeScript public interfaces ([9978cd7](https://github.com/segmentio/analytics-react-native/commit/9978cd7)) |
34 | 48 |
|
| 49 | +<a name="0.0.1-beta.1"></a> |
| 50 | + |
| 51 | +## [0.0.1-beta.1](https://github.com/segmentio/analytics-react-native/compare/v0.0.1-beta.0...v0.0.1-beta.1) (2018-10-23) |
| 52 | + |
| 53 | +### Bug Fixes |
| 54 | + |
| 55 | +- **bridge:** improve missing native module error ([#5](https://github.com/segmentio/analytics-react-native/issues/5)) ([0a03617](https://github.com/segmentio/analytics-react-native/commit/0a03617)) |
| 56 | +- **integrations:** fix TypeScript typings ([#8](https://github.com/segmentio/analytics-react-native/issues/8)) ([7535510](https://github.com/segmentio/analytics-react-native/commit/7535510)), closes [#6](https://github.com/segmentio/analytics-react-native/issues/6) |
| 57 | + |
| 58 | +### Features |
| 59 | + |
| 60 | +- **client:** use object-based configuration ([#7](https://github.com/segmentio/analytics-react-native/issues/7)) ([6a281f4](https://github.com/segmentio/analytics-react-native/commit/6a281f4)) |
35 | 61 |
|
36 | 62 | ### BREAKING CHANGES
|
37 | 63 |
|
38 |
| -* **client:** We've dropped the chained configuration for an object one instead. This will make Analytics blend even better with tools like Prettier. |
| 64 | +- **client:** We've dropped the chained configuration for an object one instead. This will make Analytics blend even better with tools like Prettier. |
39 | 65 |
|
40 | 66 | Before:
|
| 67 | + |
41 | 68 | ```js
|
42 | 69 | analytics
|
43 |
| - .configure() |
44 |
| - .using(Mixpanel, GoogleAnalytics) |
45 |
| - .recordScreenViews() |
46 |
| - .trackAppLifecycleEvents() |
47 |
| - .trackAttributionData() |
48 |
| - .android() |
49 |
| - .flushInterval(60) |
50 |
| - .disableDevicedId() |
51 |
| - .ios() |
52 |
| - .trackAdvertising() |
53 |
| - .trackDeepLinks() |
54 |
| - .setup("writeKey") |
55 |
| - .then(() => |
56 |
| - console.log('Analytics is ready') |
57 |
| - ) |
58 |
| - .catch(err => |
59 |
| - console.error('Something went wrong', err) |
60 |
| - ) |
| 70 | + .configure() |
| 71 | + .using(Mixpanel, GoogleAnalytics) |
| 72 | + .recordScreenViews() |
| 73 | + .trackAppLifecycleEvents() |
| 74 | + .trackAttributionData() |
| 75 | + .android() |
| 76 | + .flushInterval(60) |
| 77 | + .disableDevicedId() |
| 78 | + .ios() |
| 79 | + .trackAdvertising() |
| 80 | + .trackDeepLinks() |
| 81 | + .setup('writeKey') |
| 82 | + .then(() => console.log('Analytics is ready')) |
| 83 | + .catch(err => console.error('Something went wrong', err)) |
61 | 84 | ```
|
62 | 85 |
|
63 | 86 | Now:
|
| 87 | + |
64 | 88 | ```js
|
65 | 89 | analytics
|
66 |
| - .setup('writeKey', { |
67 |
| - using: [Mixpanel, GoogleAnalytics], |
68 |
| - recordScreenViews: true, |
69 |
| - trackAppLifecycleEvents: true, |
70 |
| - trackAttributionData: true, |
71 |
| - |
72 |
| - android: { |
73 |
| - flushInterval: 60, |
74 |
| - collectDeviceId: false |
75 |
| - }, |
76 |
| - ios: { |
77 |
| - trackAdvertising: true, |
78 |
| - trackDeepLinks: true |
79 |
| - } |
80 |
| - }) |
81 |
| - .then(() => |
82 |
| - console.log('Analytics is ready') |
83 |
| - ) |
84 |
| - .catch(err => |
85 |
| - console.error('Something went wrong', err) |
86 |
| - ) |
| 90 | + .setup('writeKey', { |
| 91 | + using: [Mixpanel, GoogleAnalytics], |
| 92 | + recordScreenViews: true, |
| 93 | + trackAppLifecycleEvents: true, |
| 94 | + trackAttributionData: true, |
| 95 | + |
| 96 | + android: { |
| 97 | + flushInterval: 60, |
| 98 | + collectDeviceId: false |
| 99 | + }, |
| 100 | + ios: { |
| 101 | + trackAdvertising: true, |
| 102 | + trackDeepLinks: true |
| 103 | + } |
| 104 | + }) |
| 105 | + .then(() => console.log('Analytics is ready')) |
| 106 | + .catch(err => console.error('Something went wrong', err)) |
87 | 107 | ```
|
88 | 108 |
|
89 |
| - |
90 |
| - |
91 | 109 | <a name="0.0.1-beta.0"></a>
|
92 | 110 |
|
93 | 111 | ## [0.0.1-beta.0](https://github.com/segmentio/analytics-react-native/compare/v0.0.1-alpha.9...v0.0.1-beta.0) (2018-10-13)
|
|
0 commit comments