Skip to content

Commit

Permalink
fix: change the SDK name prefix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoweii committed Apr 3, 2024
1 parent 2bbecd1 commit ac5ecb1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,24 +284,24 @@ ClickstreamAnalytics.enable();

## How to integrate and test locally

Clone this repository locally and execute the following script to generate `clickstream-react-native-0.0.1.tgz` zip
Clone this repository locally and execute the following script to generate `aws-clickstream-react-native-0.0.1.tgz` zip
package, which will be located in the project root folder.

```bash
cd clickstream-react-native && yarn && yarn run pack
```

Copy the `clickstream-react-native-0.0.1.tgz` into your project, then execute the script in your project root folder to
Copy the `aws-clickstream-react-native-0.0.1.tgz` into your project, then execute the script in your project root folder to
install the SDK.

```bash
yarn add ./clickstream-react-native-0.0.1.tgz
yarn add ./aws-clickstream-react-native-0.0.1.tgz
```

**Note**: Please correct the SDK version and change the path to where the `clickstream-react-native-0.0.1.tgz` file is
**Note**: Please correct the SDK version and change the path to where the `aws-clickstream-react-native-0.0.1.tgz` file is
located.

You can also find the `clickstream-react-native-0.0.1.tgz` file in
You can also find the `aws-clickstream-react-native-0.0.1.tgz` file in
the [Release](https://github.com/awslabs/clickstream-react-native/releases) page.

### Test
Expand Down
3 changes: 2 additions & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {
ScrollView,
SafeAreaView,
} from 'react-native';
import { ClickstreamAnalytics, Item } from 'clickstream-react-native';
// @ts-ignore
import { ClickstreamAnalytics, Item } from '@aws/clickstream-react-native';

export default function App() {
const initSDK = async () => {
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ echo ${version}
regex="[0-9]\+\.[0-9]\+\.[0-9]\+"

sed -i "s/\"version\": \"${regex}\"/\"version\": \"${version}\"/g" package.json
sed -i "s/clickstream-react-native-${regex}.tgz/clickstream-react-native-${version}.tgz/g" README.md
sed -i "s/aws-clickstream-react-native-${regex}.tgz/aws-clickstream-react-native-${version}.tgz/g" README.md
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"rootDir": "src",
"paths": {
"clickstream-react-native": [
"@aws/clickstream-react-native": [
"./src/index"
]
},
Expand Down Expand Up @@ -34,7 +34,6 @@
"outDir": "lib"
},
"exclude": [
"**/__tests__",
"example"
]
}

0 comments on commit ac5ecb1

Please sign in to comment.