@blueconic/blueconic-react-native 1.3.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,10 +2,18 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  `@blueconic/blueconic-react-native` adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
4
4
 
5
- ## [1.3.1] - 2022-11-22
5
+ ## [2.0.0] - 2022-11-24
6
6
 
7
+ - Released 1.3.1 alpha as 2.0.0 latest, since it contains breaking changes.
8
+
9
+ ## [1.3.1] - 2022-11-22 (alpha)
10
+
11
+ - Changed the way the blueconic android AAR is loaded (no longer via direct .AAR reference) (breaking change)
12
+ - Added targetSdkVersion 31 (breaking change)
13
+
14
+ ## [1.3.0] - 2022-11-22 (alpha)
7
15
  - Changed peerDependency for react-native to <1.0.0, to fix error with NPM v7 when an app uses a different version of react-native than this package.
8
- - Changed the way the blueconic android AAR is loaded (no longer via direct .AAR reference)
16
+ - This release was pulled from NPM, as it shouldn't be used without the changes made in 1.3.1
9
17
 
10
18
  ## [1.2.0] - 2021-21-6
11
19
 
package/README.md CHANGED
@@ -22,11 +22,9 @@ Or include it to your React Native project's package.json 
22
22
  {
23
23
  "react": "16.8.6",
24
24
  "react-native": "0.60.4",
25
- "@blueconic/blueconic-react-native": "^1.3.1"
25
+ "@blueconic/blueconic-react-native": "^2.0.0"
26
26
  }
27
27
  ```
28
-
29
-
30
28
   
31
29
   
32
30
  ## iOS implementation of the React Native App
@@ -37,9 +35,8 @@ Or include it to your React Native project's package.json 
37
35
  node_modules/@blueconic/blueconic-react-native/ios
38
36
  ```
39
37
 
40
-
41
38
  -  The `.xcodeproj` will include a Product folder, make sure the `libBlueConicClient.a` library is added to the Link Binary with Libraries section of the Build Phases of the app's target
42
- -  The package is dependent on react-native. It searches for the react-native headers both in your project’s node `modules/react-native/React` directory, as well as in `./ios/Pods/Headers/Public` in case react-native is used through CocoaPods. If the react-native headers are saved elsewhere, add the correct path to the Header Search Paths Build Setting of the BlueConicClient target.
39
+ - The package is dependent on react-native. It searches for the react-native headers both in your project’s node `modules/react-native/React` directory, as well as in `./ios/Pods/Headers/Public` in case react-native is used through CocoaPods. If the react-native headers are saved elsewhere, add the correct path to the Header Search Paths Build Setting of the BlueConicClient target.
43
40
 
44
41
  #### 2. Add the configuration key for BlueConic:
45
42
   Locate your app's Information Property List file under "Supporting Files".
@@ -103,10 +100,8 @@ bc_debug
103
100
   
104
101
  ##  Android implementation of the React Native App
105
102
 
106
- ```
107
-
108
- #### 1. Add the file blueconic-lib-<version>.aar to your project
109
- * Create `blueconic` directory in your projects `android` root directory
103
+ #### 1. Add the Android SDK blueconic-lib-<version>.aar to your app project as gradle module
104
+ * Create `blueconic` directory in your projects' in the `android` root directory
110
105
  * Add `build.gradle` file with these contents:
111
106
 
112
107
  ```
@@ -115,25 +110,38 @@ artifacts.add("default", file('blueconic-lib-<version>.aar'))
115
110
  ```
116
111
 
117
112
  Add the .aar file to the 'blueconic' directory, alongside the `build.gradle`.
113
+ You now have a gradle module called 'blueconic' which can be used in your app as well as in the BlueConic react-native NPM module.
118
114
 
119
- #### 2. Include the React Native project to the settings.gradle
120
-  Append the following lines to `android/settings.gradle`
115
+ #### 2. Include the React Native project in the settings.gradle
116
+ Append the following lines to the `android/settings.gradle` file.
117
+  
121
118
  ``` 
122
-  include ':blueconic'
123
- include ':blueconic_blueconic-react-native'
124
- project(':blueconic_blueconic-react-native').projectDir = new File(rootProject.projectDir,
119
+ include ':blueconic'
120
+ include ':blueconic_blueconic-react-native'
121
+ project(':blueconic_blueconic-react-native').projectDir = new File(rootProject.projectDir,
125
122
  '../node_modules/@blueconic/blueconic-react-native/android')
126
123
  ```
124
+
127
125
  This loads both the BlueConic React Native library as the BlueConic Android SDK.
126
+
127
+ #### 3. (Optionally) Set "allow backup"-option to true in the AndroidManifest.xml
128
+ It could be that the IDE requires to override the "allowBackup" options in order to build
129
+ Add/ change this option in the AndroidManifest.xml
130
+
131
+ ```
132
+ android:allowBackup="true"
133
+ ```
128
134
   
129
- #### 3. Add permissions to the AndroidManifest.xml:
135
+ #### 4. Add permissions to the AndroidManifest.xml:
136
+
130
137
  ```
131
138
   <uses-permission android:name="android.permission.INTERNET" />
132
139
   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
133
140
  ```
134
141
   
135
- #### 4. Add intent filters to the AndroidManifest.xml for connecting to the simulator:
136
-  Configure your appId at the android:scheme attribute in the code fragment below. For example `"com.test.testapp"`.
142
+ #### 5. Add intent filters to the AndroidManifest.xml for connecting to the simulator:
143
+ Configure your appId at the android:scheme attribute in the code fragment below. For example `"com.test.testapp"`.
144
+
137
145
  ```
138
146
   <activity android:name=".MainActivity" android:label="@string/app_name">
139
147
   <intent-filter>
@@ -156,7 +164,7 @@ This loads both the BlueConic React Native library as the BlueConic Android SDK.
156
164
   </activity>
157
165
  ```
158
166
 
159
- #### 5. Add the configuration file for BlueConic:
167
+ #### 6. Add the configuration file for BlueConic:
160
168
   Create a file named `blueconic_configuration.xml` in `/res/values/`:
161
169
  ```
162
170
  <?xml version="1.0" encoding="utf-8"?>
@@ -172,7 +180,7 @@ This loads both the BlueConic React Native library as the BlueConic Android SDK.
172
180
   </resources>
173
181
  ```
174
182
 
175
- #### 6. Optionally, enable debug mode:
183
+ #### 7. Optionally, enable debug mode:
176
184
   Add the following node to the configuration file
177
185
   ```
178
186
  <bool name="bc_debug">true</bool>
@@ -29,10 +29,6 @@ android {
29
29
 
30
30
  repositories {
31
31
  mavenCentral()
32
-
33
- flatDir {
34
- dirs '../../../../android/app/libs'
35
- }
36
32
  }
37
33
 
38
34
  dependencies {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueconic/blueconic-react-native",
3
- "version": "1.3.1",
3
+ "version": "2.0.0",
4
4
  "description": "The BlueConicClient Framework provides the basis for communication with BlueConic.",
5
5
  "main": "index.js",
6
6
  "scripts": {