react-native-notifyvisitors 4.1.1 → 4.1.4
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/README.md +0 -41
- package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/{6.3 → 7.1.1/dependencies-accessors}/gc.properties +0 -0
- package/android/.gradle/7.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{6.3 → 7.1.1}/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.1.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.settings/org.eclipse.buildship.core.prefs +2 -2
- package/android/build.gradle +13 -14
- package/android/src/main/AndroidManifest.xml +4 -3
- package/android/src/main/java/com/rn_notifyvisitors/RNNotifyvisitorsModule.java +587 -201
- package/index.d.ts +26 -0
- package/index.js +212 -207
- package/ios/RNNotifyvisitors/RCTNVEventEmitter.m +504 -187
- package/ios/RNNotifyvisitors/RNNotifyvisitors.m +1 -1
- package/ios/RNNotifyvisitors.xcodeproj/project.pbxproj +8 -8
- package/ios/RNNotifyvisitors.xcodeproj/project.xcworkspace/xcuserdata/tagnpinwebsolutionsllp.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/{libnotifyvisitors_6_0_3.a → libnotifyvisitors_6_3_1.a} +0 -0
- package/ios/notifyvisitors.h +41 -14
- package/package.json +1 -1
- package/react-native-notifyvisitors.podspec +1 -1
- package/android/.gradle/6.3/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.3/fileHashes/fileHashes.lock +0 -0
package/README.md
CHANGED
|
@@ -1,45 +1,4 @@
|
|
|
1
1
|
|
|
2
2
|
# react-native-notifyvisitors
|
|
3
3
|
|
|
4
|
-
## Getting started
|
|
5
|
-
|
|
6
|
-
`$ npm install react-native-notifyvisitors --save`
|
|
7
|
-
|
|
8
|
-
### Mostly automatic installation
|
|
9
|
-
|
|
10
|
-
`$ react-native link react-native-notifyvisitors`
|
|
11
|
-
|
|
12
|
-
### Manual installation
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
#### iOS
|
|
16
|
-
|
|
17
|
-
1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
|
|
18
|
-
2. Go to `node_modules` ➜ `react-native-notifyvisitors` and add `RNNotifyvisitors.xcodeproj`
|
|
19
|
-
3. In XCode, in the project navigator, select your project. Add `libRNNotifyvisitors.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
|
|
20
|
-
4. Run your project (`Cmd+R`)<
|
|
21
|
-
|
|
22
|
-
#### Android
|
|
23
|
-
|
|
24
|
-
1. Open up `android/app/src/main/java/[...]/MainActivity.java`
|
|
25
|
-
- Add `import com.reactlibrary.RNNotifyvisitorsPackage;` to the imports at the top of the file
|
|
26
|
-
- Add `new RNNotifyvisitorsPackage()` to the list returned by the `getPackages()` method
|
|
27
|
-
2. Append the following lines to `android/settings.gradle`:
|
|
28
|
-
```
|
|
29
|
-
include ':react-native-notifyvisitors'
|
|
30
|
-
project(':react-native-notifyvisitors').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-notifyvisitors/android')
|
|
31
|
-
```
|
|
32
|
-
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
|
|
33
|
-
```
|
|
34
|
-
compile project(':react-native-notifyvisitors')
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
## Usage
|
|
39
|
-
```javascript
|
|
40
|
-
import RNNotifyvisitors from 'react-native-notifyvisitors';
|
|
41
|
-
|
|
42
|
-
// TODO: What to do with the module?
|
|
43
|
-
RNNotifyvisitors;
|
|
44
|
-
```
|
|
45
4
|
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
2
|
-
gradle.version=
|
|
1
|
+
#Wed Mar 16 17:12:28 IST 2022
|
|
2
|
+
gradle.version=7.1.1
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
arguments=
|
|
2
2
|
auto.sync=false
|
|
3
3
|
build.scans.enabled=false
|
|
4
|
-
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(
|
|
4
|
+
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.1.1))
|
|
5
5
|
connection.project.dir=
|
|
6
6
|
eclipse.preferences.version=1
|
|
7
7
|
gradle.user.home=
|
|
8
|
-
java.home=/Library/Java/JavaVirtualMachines/
|
|
8
|
+
java.home=/Library/Java/JavaVirtualMachines/jdk-11.0.15.1.jdk/Contents/Home
|
|
9
9
|
jvm.arguments=
|
|
10
10
|
offline.mode=false
|
|
11
11
|
override.workspace.settings=true
|
package/android/build.gradle
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
apply plugin: 'com.android.library'
|
|
2
|
+
|
|
1
3
|
buildscript {
|
|
2
4
|
repositories {
|
|
3
5
|
google()
|
|
4
|
-
|
|
6
|
+
mavenCentral()
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
dependencies {
|
|
@@ -10,15 +12,12 @@ buildscript {
|
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
apply plugin: 'com.android.library'
|
|
14
15
|
|
|
15
16
|
android {
|
|
16
|
-
compileSdkVersion
|
|
17
|
-
buildToolsVersion "29.0.2"
|
|
18
|
-
|
|
17
|
+
compileSdkVersion 31
|
|
19
18
|
defaultConfig {
|
|
20
19
|
minSdkVersion 19
|
|
21
|
-
targetSdkVersion
|
|
20
|
+
targetSdkVersion 31
|
|
22
21
|
}
|
|
23
22
|
lintOptions {
|
|
24
23
|
abortOnError false
|
|
@@ -33,19 +32,19 @@ dependencies {
|
|
|
33
32
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
34
33
|
implementation 'com.facebook.react:react-native:+'
|
|
35
34
|
|
|
36
|
-
implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:
|
|
35
|
+
implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:5.3.4'
|
|
36
|
+
implementation 'androidx.appcompat:appcompat:1.3.1'
|
|
37
|
+
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
38
|
+
implementation 'com.google.android.material:material:1.4.0'
|
|
39
|
+
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
|
40
|
+
implementation 'androidx.cardview:cardview:1.0.0'
|
|
37
41
|
implementation 'com.android.installreferrer:installreferrer:2.1'
|
|
42
|
+
implementation 'com.google.android.play:core:1.10.1'
|
|
38
43
|
|
|
39
|
-
implementation 'com.android.support:design:28.0.0'
|
|
40
|
-
implementation 'com.android.support:recyclerview-v7:28.0.0'
|
|
41
|
-
implementation 'com.android.support:cardview-v7:28.0.0'
|
|
42
|
-
|
|
43
44
|
implementation 'com.google.android.gms:play-services-location:17.0.0'
|
|
44
45
|
implementation 'com.google.firebase:firebase-core:17.2.2'
|
|
45
|
-
implementation 'com.google.firebase:firebase-messaging:20.1.0'
|
|
46
|
-
|
|
46
|
+
implementation 'com.google.firebase:firebase-messaging:20.1.0'
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
|
|
50
49
|
//apply plugin: 'com.google.gms.google-services'
|
|
51
50
|
|
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
android:usesCleartextTraffic="true"
|
|
17
17
|
android:largeHeap="true"
|
|
18
18
|
android:supportsRtl="true">
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
<service
|
|
20
|
+
android:name="com.notifyvisitors.notifyvisitors.NVFirebaseMessagingService"
|
|
21
|
+
android:exported="true">
|
|
21
22
|
<intent-filter>
|
|
22
23
|
<action android:name="com.google.firebase.MESSAGING_EVENT" />
|
|
23
24
|
</intent-filter>
|
|
24
|
-
</service>
|
|
25
|
+
</service>
|
|
25
26
|
</application>
|
|
26
27
|
</manifest>
|
|
27
28
|
|