Skip to content

Commit

Permalink
enable react native sdk (#716)
Browse files Browse the repository at this point in the history
* feat: react native sdk setup done

* refactor: precommit fix

* refactor: pgp and crypto helper functions

* feat: user functions for react-native

* feat: intent functions for react-native

* test: add rn sdk and tests in example app

* feat: created function for chat decrypt, create group, update group for rn-sdk

* fix: example app create user

* chore: resolve conflict issues

* chore: add random functions to create/update grp

* chore: fix linting issues

* chore: add test for rn approve req

* feat: rn-sdk

* feat: rn sdk done

---------

Co-authored-by: kalashshah <[email protected]>
Co-authored-by: KlausMikhaelson <[email protected]>
Co-authored-by: Satyam <[email protected]>
Co-authored-by: Kalash Shah <[email protected]>
  • Loading branch information
5 people authored Oct 19, 2023
1 parent e67a6ee commit 26eff3f
Show file tree
Hide file tree
Showing 136 changed files with 4,660 additions and 2,317 deletions.
35 changes: 35 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
EXAMPLE USAGE:

Refer for explanation to following link:
https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md

pre-push:
commands:
packages-audit:
tags: frontend security
run: yarn audit
gems-audit:
tags: backend security
run: bundle audit

pre-commit:
parallel: true
commands:
eslint:
glob: "*.{js,ts,jsx,tsx}"
run: yarn eslint {staged_files}
rubocop:
tags: backend style
glob: "*.rb"
exclude: "application.rb|routes.rb"
run: bundle exec rubocop --force-exclusion {all_files}
govet:
tags: backend style
files: git ls-files -m
glob: "*.go"
run: go vet {files}
scripts:
"hello.js":
runner: node
"any.go":
runner: go run
11 changes: 0 additions & 11 deletions packages/reactnative/.babelrc

This file was deleted.

15 changes: 15 additions & 0 deletions packages/reactnative/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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
20 changes: 0 additions & 20 deletions packages/reactnative/.eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions packages/reactnative/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pbxproj -text
# specific for windows script files
*.bat text eol=crlf
70 changes: 70 additions & 0 deletions packages/reactnative/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# 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
#
.classpath
.cxx
.gradle
.idea
.project
.settings
local.properties
android.iml

# Cocoapods
#
example/ios/Pods

# Ruby
example/vendor/

# 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/

# Turborepo
.turbo/

# generated by bob
lib/
1 change: 1 addition & 0 deletions packages/reactnative/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.18.1
1 change: 1 addition & 0 deletions packages/reactnative/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 3 additions & 0 deletions packages/reactnative/.yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Override Yarn command so we can automatically setup the repo on running `yarn`

yarn-path "scripts/bootstrap.js"
32 changes: 0 additions & 32 deletions packages/reactnative/CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 26eff3f

Please sign in to comment.