From aa487a69ee0321316bb49579f08d2989b4a7b1f0 Mon Sep 17 00:00:00 2001 From: Jason Safaiyeh Date: Wed, 22 Jan 2020 18:24:37 -0800 Subject: [PATCH 1/4] Added Joe Ferraro copyright notice --- README.md | 2 ++ .../reactnativecommunity/cookies/CookieManagerModule.java | 7 +++++++ .../cookies/CookieManagerPackage.java | 7 +++++++ ios/RNCookieManagerIOS/RNCookieManagerIOS.h | 8 +++++++- ios/RNCookieManagerIOS/RNCookieManagerIOS.m | 7 +++++++ 5 files changed, 30 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d50d72..181b9d0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # React Native Cookies - A Cookie Manager for React Native Cookie Manager for React Native +This module was ported from [joeferraro/react-native-cookies](https://github.com/joeferraro/react-native-cookies). This would not exist without the work of the original author, Joe Ferraro (github: https://github.com/joeferraro). + ## Maintainers - [Jason Safaiyeh](https://github.com/safaiyeh) ([Twitter @safaiyeh](https://twitter.com/safaiyeh)) from [Sumo Logic](https://www.sumologic.com) diff --git a/android/src/main/java/com/reactnativecommunity/cookies/CookieManagerModule.java b/android/src/main/java/com/reactnativecommunity/cookies/CookieManagerModule.java index 57ce812..5f72299 100644 --- a/android/src/main/java/com/reactnativecommunity/cookies/CookieManagerModule.java +++ b/android/src/main/java/com/reactnativecommunity/cookies/CookieManagerModule.java @@ -1,3 +1,10 @@ +/** + * Copyright (c) Joseph P. Ferraro + * + * This source code is licensed under the MIT license found in the + * LICENSE file here: https://github.com/joeferraro/react-native-cookies/blob/master/LICENSE.md. + */ + package com.reactnativecommunity.cookies; import com.facebook.react.modules.network.ForwardingCookieHandler; diff --git a/android/src/main/java/com/reactnativecommunity/cookies/CookieManagerPackage.java b/android/src/main/java/com/reactnativecommunity/cookies/CookieManagerPackage.java index 904d345..cc88f2c 100644 --- a/android/src/main/java/com/reactnativecommunity/cookies/CookieManagerPackage.java +++ b/android/src/main/java/com/reactnativecommunity/cookies/CookieManagerPackage.java @@ -1,3 +1,10 @@ +/** + * Copyright (c) Joseph P. Ferraro + * + * This source code is licensed under the MIT license found in the + * LICENSE file here: https://github.com/joeferraro/react-native-cookies/blob/master/LICENSE.md. + */ + package com.reactnativecommunity.cookies; import com.facebook.react.ReactPackage; diff --git a/ios/RNCookieManagerIOS/RNCookieManagerIOS.h b/ios/RNCookieManagerIOS/RNCookieManagerIOS.h index e9d2101..a80d253 100644 --- a/ios/RNCookieManagerIOS/RNCookieManagerIOS.h +++ b/ios/RNCookieManagerIOS/RNCookieManagerIOS.h @@ -1,4 +1,10 @@ -// RNCookieManagerIOS.h +/** + * Copyright (c) Joseph P. Ferraro + * + * This source code is licensed under the MIT license found in the + * LICENSE file here: https://github.com/joeferraro/react-native-cookies/blob/master/LICENSE.md. + */ + #if __has_include("RCTBridgeModule.h") #import "RCTBridgeModule.h" #else diff --git a/ios/RNCookieManagerIOS/RNCookieManagerIOS.m b/ios/RNCookieManagerIOS/RNCookieManagerIOS.m index bfe272d..6fdb1fc 100644 --- a/ios/RNCookieManagerIOS/RNCookieManagerIOS.m +++ b/ios/RNCookieManagerIOS/RNCookieManagerIOS.m @@ -1,3 +1,10 @@ +/** + * Copyright (c) Joseph P. Ferraro + * + * This source code is licensed under the MIT license found in the + * LICENSE file here: https://github.com/joeferraro/react-native-cookies/blob/master/LICENSE.md. + */ + #import "RNCookieManagerIOS.h" #if __has_include("RCTConvert.h") #import "RCTConvert.h" From d9b2a1b0266af5d83a9996812c8f0f29a419cde9 Mon Sep 17 00:00:00 2001 From: Jason Safaiyeh Date: Wed, 22 Jan 2020 18:27:30 -0800 Subject: [PATCH 2/4] Update link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 181b9d0..9a9c24b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # React Native Cookies - A Cookie Manager for React Native Cookie Manager for React Native -This module was ported from [joeferraro/react-native-cookies](https://github.com/joeferraro/react-native-cookies). This would not exist without the work of the original author, Joe Ferraro (github: https://github.com/joeferraro). +This module was ported from [joeferraro/react-native-cookies](https://github.com/joeferraro/react-native-cookies). This would not exist without the work of the original author, [Joe Ferraro](https://github.com/joeferraro). ## Maintainers - [Jason Safaiyeh](https://github.com/safaiyeh) ([Twitter @safaiyeh](https://twitter.com/safaiyeh)) from [Sumo Logic](https://www.sumologic.com) From c85146d75a22bf9e29cfb2d277ce9927bcd35ec2 Mon Sep 17 00:00:00 2001 From: Jason Safaiyeh Date: Wed, 22 Jan 2020 18:38:32 -0800 Subject: [PATCH 3/4] Add copyright to index.js --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.js b/index.js index ceb61ba..f165bc9 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Joseph P. Ferraro + * + * This source code is licensed under the MIT license found in the + * LICENSE file here: https://github.com/joeferraro/react-native-cookies/blob/master/LICENSE.md. + */ + import { NativeModules, Platform } from 'react-native'; const invariant = require('invariant'); const RNCookieManagerIOS = NativeModules.RNCookieManagerIOS; From d0d85043754173629706e2669d7112492273dd7c Mon Sep 17 00:00:00 2001 From: Jason Safaiyeh Date: Wed, 22 Jan 2020 18:47:23 -0800 Subject: [PATCH 4/4] Lint --- index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index f165bc9..bdce697 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,9 @@ -/** - * Copyright (c) Joseph P. Ferraro - * - * This source code is licensed under the MIT license found in the - * LICENSE file here: https://github.com/joeferraro/react-native-cookies/blob/master/LICENSE.md. - */ +/** + * Copyright (c) Joseph P. Ferraro + * + * This source code is licensed under the MIT license found in the + * LICENSE file here: https://github.com/joeferraro/react-native-cookies/blob/master/LICENSE.md. + */ import { NativeModules, Platform } from 'react-native'; const invariant = require('invariant');