diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 5d401a7..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,98 +0,0 @@ -version: 2.1 - -executors: - default: - docker: - - image: circleci/node:10 - working_directory: ~/project - -commands: - attach_project: - steps: - - attach_workspace: - at: ~/project - -jobs: - install-dependencies: - executor: default - steps: - - checkout - - attach_project - - restore_cache: - keys: - - dependencies-{{ checksum "package.json" }} - - dependencies- - - restore_cache: - keys: - - dependencies-example-{{ checksum "example/package.json" }} - - dependencies-example- - - run: - name: Install dependencies - command: | - yarn install --cwd example --frozen-lockfile - yarn install --frozen-lockfile - - save_cache: - key: dependencies-{{ checksum "package.json" }} - paths: node_modules - - save_cache: - key: dependencies-example-{{ checksum "example/package.json" }} - paths: example/node_modules - - persist_to_workspace: - root: . - paths: . - - lint: - executor: default - steps: - - attach_project - - run: - name: Lint files - command: | - yarn lint - - typescript: - executor: default - steps: - - attach_project - - run: - name: Typecheck files - command: | - yarn typescript - - unit-tests: - executor: default - steps: - - attach_project - - run: - name: Run unit tests - command: | - yarn test --coverage - - store_artifacts: - path: coverage - destination: coverage - - build-package: - executor: default - steps: - - attach_project - - run: - name: Build package - command: | - yarn prepare - -workflows: - build-and-test: - jobs: - - install-dependencies - - lint: - requires: - - install-dependencies - - typescript: - requires: - - install-dependencies - - unit-tests: - requires: - - install-dependencies - - build-package: - requires: - - install-dependencies diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 65365be..0000000 --- a/.editorconfig +++ /dev/null @@ -1,15 +0,0 @@ -# EditorConfig helps developers define and maintain consistent -# coding styles between different editors and IDEs -# editorconfig.org - -root = true - -[*] - -indent_style = space -indent_size = 2 - -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 030ef14..0000000 --- a/.gitattributes +++ /dev/null @@ -1,3 +0,0 @@ -*.pbxproj -text -# specific for windows script files -*.bat text eol=crlf \ No newline at end of file diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 9da6239..0000000 --- a/.gitignore +++ /dev/null @@ -1,57 +0,0 @@ -# OSX -# -.DS_Store - -# XDE -.expo/ - -# VSCode -.vscode/ -jsconfig.json - -# Xcode -# -build/ -*.pbxuser -!default.pbxuser -*.mode1v3 -!default.mode1v3 -*.mode2v3 -!default.mode2v3 -*.perspectivev3 -!default.perspectivev3 -xcuserdata -*.xccheckout -*.moved-aside -DerivedData -*.hmap -*.ipa -*.xcuserstate -project.xcworkspace - -# Android/IJ -# -.idea -.gradle -local.properties -android.iml - -# Cocoapods -# -example/ios/Pods - -# node.js -# -node_modules/ -npm-debug.log -yarn-debug.log -yarn-error.log - -# BUCK -buck-out/ -\.buckd/ -android/app/libs -android/keystores/debug.keystore - -# Expo -.expo/* diff --git a/.yarnrc b/.yarnrc deleted file mode 100644 index fedc0f1..0000000 --- a/.yarnrc +++ /dev/null @@ -1,3 +0,0 @@ -# Override Yarn command so we can automatically setup the repo on running `yarn` - -yarn-path "scripts/bootstrap.js" diff --git a/android/.gradle/6.1.1/executionHistory/executionHistory.bin b/android/.gradle/6.1.1/executionHistory/executionHistory.bin new file mode 100644 index 0000000..4819fba Binary files /dev/null and b/android/.gradle/6.1.1/executionHistory/executionHistory.bin differ diff --git a/android/.gradle/6.1.1/executionHistory/executionHistory.lock b/android/.gradle/6.1.1/executionHistory/executionHistory.lock new file mode 100644 index 0000000..25faec8 Binary files /dev/null and b/android/.gradle/6.1.1/executionHistory/executionHistory.lock differ diff --git a/android/.gradle/6.1.1/fileChanges/last-build.bin b/android/.gradle/6.1.1/fileChanges/last-build.bin new file mode 100644 index 0000000..f76dd23 Binary files /dev/null and b/android/.gradle/6.1.1/fileChanges/last-build.bin differ diff --git a/android/.gradle/6.1.1/fileHashes/fileHashes.bin b/android/.gradle/6.1.1/fileHashes/fileHashes.bin new file mode 100644 index 0000000..538c412 Binary files /dev/null and b/android/.gradle/6.1.1/fileHashes/fileHashes.bin differ diff --git a/android/.gradle/6.1.1/fileHashes/fileHashes.lock b/android/.gradle/6.1.1/fileHashes/fileHashes.lock new file mode 100644 index 0000000..e83d1a7 Binary files /dev/null and b/android/.gradle/6.1.1/fileHashes/fileHashes.lock differ diff --git a/android/.gradle/6.1.1/gc.properties b/android/.gradle/6.1.1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 0000000..48d2ee6 Binary files /dev/null and b/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/android/.gradle/buildOutputCleanup/cache.properties b/android/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000..e2a73ab --- /dev/null +++ b/android/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Tue Jan 12 15:45:11 IST 2021 +gradle.version=6.1.1 diff --git a/android/.gradle/buildOutputCleanup/outputFiles.bin b/android/.gradle/buildOutputCleanup/outputFiles.bin new file mode 100644 index 0000000..24b4c85 Binary files /dev/null and b/android/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/android/.gradle/checksums/checksums.lock b/android/.gradle/checksums/checksums.lock new file mode 100644 index 0000000..0d0564b Binary files /dev/null and b/android/.gradle/checksums/checksums.lock differ diff --git a/android/.gradle/checksums/md5-checksums.bin b/android/.gradle/checksums/md5-checksums.bin new file mode 100644 index 0000000..a6e98ef Binary files /dev/null and b/android/.gradle/checksums/md5-checksums.bin differ diff --git a/android/.gradle/checksums/sha1-checksums.bin b/android/.gradle/checksums/sha1-checksums.bin new file mode 100644 index 0000000..825258e Binary files /dev/null and b/android/.gradle/checksums/sha1-checksums.bin differ diff --git a/android/.gradle/vcs-1/gc.properties b/android/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/android/local.properties b/android/local.properties new file mode 100644 index 0000000..ccffeb9 --- /dev/null +++ b/android/local.properties @@ -0,0 +1,8 @@ +## This file must *NOT* be checked into Version Control Systems, +# as it contains information specific to your local configuration. +# +# Location of the SDK. This is only used by Gradle. +# For customization when using a Version Control System, please read the +# header note. +#Tue Jan 12 15:45:01 IST 2021 +sdk.dir=/home/tanmay/Android/Sdk diff --git a/android/src/main/java/com/reactnativehintrequestpicker/HintRequestPickerModule.kt b/android/src/main/java/com/reactnativehintrequestpicker/HintRequestPickerModule.kt index 8f69d34..c2518a7 100644 --- a/android/src/main/java/com/reactnativehintrequestpicker/HintRequestPickerModule.kt +++ b/android/src/main/java/com/reactnativehintrequestpicker/HintRequestPickerModule.kt @@ -50,9 +50,6 @@ class HintRequestPickerModule(private val reactContext: ReactApplicationContext) val map = Arguments.createMap() if (resultCode === RESULT_OK) { val credential = data.getParcelableExtra(Credential.EXTRA_KEY) - if (credential == null) { - return; - } val phoneNumber = credential?.getId(); map.putString("phoneNumber", phoneNumber); } else {