cordova-plugin-voxeet2 1.0.23 → 1.0.24

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.

Potentially problematic release.


This version of cordova-plugin-voxeet2 might be problematic. Click here for more details.

package/README.md CHANGED
@@ -12,6 +12,8 @@ It is mandatory that you added:
12
12
 
13
13
  cordova plugin add https://github.com/voxeet/voxeet-cordova-conferencekit
14
14
 
15
+ By default the postinstall options will try to build the ios package. To skip the postinstall you can set env variable `VOXEET_SKIP_IOS_BUILD` to true. `export VOXEET_SKIP_IOS_BUILD=true`
16
+
15
17
  ### iOS
16
18
 
17
19
  - after `cordova platform add ios` in the project root folder
@@ -19,29 +21,10 @@ It is mandatory that you added:
19
21
 
20
22
  To enable push notification, follow https://github.com/voxeet/voxeet-ios-conferencekit#project-setup
21
23
 
22
- ### Android
23
-
24
- - after `cordova platform add android` in the project root folder
25
- - edit the `platforms/android/app/build.gradle` with:
26
24
 
27
- ```
28
- android {
29
- defaultConfig {
30
- // Enabling multidex support.
31
- multiDexEnabled true
32
- }
33
- dexOptions {
34
- jumboMode true
35
- incremental true
36
- javaMaxHeapSize "4g"
37
- }
38
- }
39
- ```
25
+ ### Android
40
26
 
41
- - as well as the dependencies block, put in the top dependency position:
42
- ```
43
- compile 'com.android.support:multidex:1.0.3'
44
- ```
27
+ No steps are required
45
28
 
46
29
  ### Notification
47
30
 
@@ -78,7 +61,7 @@ You can use the Voxeet and UserInfo classes using the following :
78
61
  - constructor : `(externalId: string, name: string, avatarUrl: string)`
79
62
  - json() : return the corresponding json
80
63
 
81
- ### Init
64
+ ### initialize without OAuth2
82
65
 
83
66
  ```
84
67
  Voxeet.initialize(<your consumer key>: string , <your secret key>: string)
@@ -90,6 +73,29 @@ Voxeet.initialize(<your consumer key>: string , <your secret key>: string)
90
73
  });
91
74
  ```
92
75
 
76
+ ### initialize with OAuth2
77
+
78
+ ```
79
+ //Voxeet.initializeWithRefresh(accessToken: string , refreshToken: () => Promise<boolean>)
80
+
81
+ //the callback to be used
82
+ const refreshToken = () => {
83
+ return new Promise((resolve, reject) => {
84
+ //here do your network call to get a new accessToken
85
+ //and do resolve(theAccessTokenValue);
86
+ });
87
+ }
88
+
89
+ //the actual call to the SDK initialization
90
+ Voxeet.initializeWithRefresh("someValidAccessToken" , refreshToken)
91
+ .then(() => {
92
+ //if the initialization is ok
93
+ })
94
+ .catch(err => {
95
+ //in case of error
96
+ });
97
+ ```
98
+
93
99
  ### Session opening
94
100
 
95
101
  ```
@@ -1,5 +1,6 @@
1
1
  #!/bin/bash
2
2
 
3
- cd ./src/ios
3
+ [[ "${VOXEET_SKIP_IOS_BUILD}" == "true" ]] && echo "skip build ios" && exit 0
4
4
 
5
- carthage update --platform ios
5
+ echo "starting carthage"
6
+ carthage update --platform ios --verbose --project-directory ./src/ios
@@ -0,0 +1,6 @@
1
+ #!/bin/bash
2
+
3
+ [[ "${VOXEET_SKIP_IOS_BUILD}" == "true" ]] && echo "skip build ios" && exit 0
4
+
5
+ echo "starting carthage"
6
+ carthage update --platform ios --verbose --project-directory ./src/ios