diff --git a/.gitignore b/.gitignore index 4148267..b75f420 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,7 @@ - # OSX # .DS_Store -# node.js -# -node_modules/ -npm-debug.log -yarn-error.log -package-lock.json - - # Xcode # build/ @@ -30,20 +21,34 @@ DerivedData *.ipa *.xcuserstate project.xcworkspace - # Android/IntelliJ # build/ .idea -.vscode .gradle local.properties *.iml +android/gradle/ +android/gradlew +android/gradlew.bat + +# node.js +# +node_modules/ +npm-debug.log +yarn-error.log # BUCK buck-out/ \.buckd/ -# *.keystore -dev/ -.vscode +*.keystore +!debug.keystore + +# Bundle artifact +*.jsbundle + +# CocoaPods +/ios/Pods/ + +.vscode/ diff --git a/.npmignore b/.npmignore index e6c7b34..90c978b 100644 --- a/.npmignore +++ b/.npmignore @@ -1,8 +1 @@ -example -local_example -.vscode -.gitignore -.gitattributes -dev -*.keystore -package-lock.json \ No newline at end of file +example/ diff --git a/android/.npmignore b/android/.npmignore new file mode 100644 index 0000000..54b25fb --- /dev/null +++ b/android/.npmignore @@ -0,0 +1,10 @@ +*.iml +.DS_Store +.gradle/ +.idea/ +.npmignore +build/ +gradle/ +gradlew +gradlew.bat +local.properties diff --git a/ios/.npmignore b/ios/.npmignore new file mode 100644 index 0000000..aacee6d --- /dev/null +++ b/ios/.npmignore @@ -0,0 +1,6 @@ +*/project.xcworkspace/ +*/xcuserdata/ +.DS_Store +.npmignore +Pods/ +build/ diff --git a/ios/RNNetworkState.xcworkspace/contents.xcworkspacedata b/ios/RNNetworkState.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 92550f2..0000000 --- a/ios/RNNetworkState.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,9 +0,0 @@ -// !$*UTF8*$! - - - - - - \ No newline at end of file diff --git a/package.json b/package.json index 0961592..0f613dc 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,15 @@ "name": "react-native-network-state", "version": "1.1.5", "description": "Network Reachability instantly module for React Native", + "files": [ + "android", + "ios", + "fixAndroid.js", + "index.d.ts", + "RNNetworkState.podspec" + ], "main": "index.js", + "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" },