File tree Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 13
13
"@react-native-async-storage/async-storage" : " ^1.15.8" ,
14
14
"react" : " 17.0.2" ,
15
15
"react-native" : " 0.65.1" ,
16
- "react-native-android-notification-listener" : " ^4.0.0 "
16
+ "react-native-android-notification-listener" : " ^4.0.2 "
17
17
},
18
18
"devDependencies" : {
19
19
"@babel/core" : " ^7.12.9" ,
Original file line number Diff line number Diff line change @@ -20,8 +20,16 @@ buildscript {
20
20
}
21
21
}
22
22
23
+
23
24
apply plugin : ' com.android.library'
24
- apply plugin : ' maven'
25
+
26
+ def GRADLE_VERSION = Double . parseDouble(" $gradle . gradleVersion " )
27
+
28
+ if (GRADLE_VERSION >= 7.0 ) {
29
+ apply plugin : ' maven-publish'
30
+ } else {
31
+ apply plugin : ' maven'
32
+ }
25
33
26
34
// Matches values in recent template from React Native 0.59 / 0.60
27
35
// https://github.com/facebook/react-native/blob/0.59-stable/template/android/build.gradle#L5-L9
@@ -130,10 +138,13 @@ afterEvaluate { project ->
130
138
131
139
task installArchives(type : Upload ) {
132
140
configuration = configurations. archives
133
- repositories. mavenDeployer {
134
- // Deploy to react-native-event-bridge/maven, ready to publish to npm
135
- repository url : " file://${ projectDir} /../android/maven"
136
- configureReactNativePom pom
141
+
142
+ if (GRADLE_VERSION < 7.0 ) {
143
+ repositories. mavenDeployer {
144
+ // Deploy to react-native-event-bridge/maven, ready to publish to npm
145
+ repository url : " file://${ projectDir} /../android/maven"
146
+ configureReactNativePom pom
147
+ }
137
148
}
138
149
}
139
150
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-android-notification-listener" ,
3
3
"title" : " React Native Android Notification Listener" ,
4
- "version" : " 4.0.1 " ,
4
+ "version" : " 4.0.2 " ,
5
5
"description" : " React Native Android Notification Listener - Listen for status bar notifications from all applications" ,
6
6
"main" : " index.js" ,
7
7
"typings" : " index.d.ts" ,
You can’t perform that action at this time.
0 commit comments