Skip to content

Commit

Permalink
chore: rename to sodium-react-native-direct
Browse files Browse the repository at this point in the history
  • Loading branch information
pwltr committed Dec 14, 2023
1 parent e9e1bf6 commit 13eda1e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sodium-react-native-example",
"description": "Example app for sodium-react-native",
"name": "sodium-react-native-direct-example",
"description": "Example app for sodium-react-native-direct",
"version": "0.0.1",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { StyleSheet, View, SafeAreaView } from 'react-native';
import sodium from 'sodium-react-native';
import sodium from 'sodium-react-native-direct';
import b4a from 'b4a';

import Text from './components/Text';
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sodium-react-native",
"version": "0.1.0",
"name": "sodium-react-native-direct",
"version": "0.3.0",
"description": "React native wrapper for libsodium crypto library",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down Expand Up @@ -39,7 +39,7 @@
"!**/.*"
],
"scripts": {
"example": "yarn workspace sodium-react-native-example",
"example": "yarn workspace sodium-react-native-direct-example",
"build:libsodium": "./libsodium/build.sh",
"test": "jest",
"typecheck": "tsc --noEmit",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'

Pod::Spec.new do |s|
s.name = "sodium-react-native"
s.name = package["name"]
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
Expand Down
2 changes: 1 addition & 1 deletion src/libsodium.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NativeModules, Platform } from 'react-native';

const LINKING_ERROR =
`The package 'sodium-react-native' doesn't seem to be linked. Make sure: \n\n` +
`The package 'sodium-react-native-direct' doesn't seem to be linked. Make sure: \n\n` +
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
'- You rebuilt the app after installing the package\n' +
'- You are not using Expo Go\n';
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"compilerOptions": {
"rootDir": ".",
"paths": {
"sodium-react-native": ["./src/index"],
"sodium-react-native/*": ["./src/*"]
"sodium-react-native-direct": ["./src/index"],
"sodium-react-native-direct/*": ["./src/*"]
},
"allowUnreachableCode": false,
"allowUnusedLabels": false,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11932,9 +11932,9 @@ __metadata:
languageName: node
linkType: hard

"sodium-react-native-example@workspace:example":
"sodium-react-native-direct-example@workspace:example":
version: 0.0.0-use.local
resolution: "sodium-react-native-example@workspace:example"
resolution: "sodium-react-native-direct-example@workspace:example"
dependencies:
"@babel/core": ^7.20.0
"@babel/preset-env": ^7.20.0
Expand All @@ -11950,9 +11950,9 @@ __metadata:
languageName: unknown
linkType: soft

"sodium-react-native@workspace:.":
"sodium-react-native-direct@workspace:.":
version: 0.0.0-use.local
resolution: "sodium-react-native@workspace:."
resolution: "sodium-react-native-direct@workspace:."
dependencies:
"@commitlint/config-conventional": ^17.0.2
"@evilmartians/lefthook": ^1.5.0
Expand Down

0 comments on commit 13eda1e

Please sign in to comment.