Update android example for v23.043.

This commit is contained in:
Sl-violet 2023-02-02 15:45:21 +00:00
parent 9b0b4aec7b
commit 6a9c1cad09
2 changed files with 5 additions and 10 deletions

View File

@ -1,11 +1,11 @@
# TradingView Charting Library Android Integration Example
The earliest supported version of the charting library for these examples is `v20`.
The earliest supported version of the charting library for these examples is `v23.043`.
## How to start
1. Check that you can view https://github.com/tradingview/charting_library/. If you do not have access then you can [request access to this repository here](https://www.tradingview.com/HTML5-stock-forex-bitcoin-charting-library/).
1. Install dependencies `npm install`.
1. Setup the development environment. [React Native Docs](https://reactnative.dev/docs/environment-setup)
1. Copy the charting library files
1. If you are able to run bash scripts then the `copy_charting_library_files.sh` script can be used to copy the current stable version's files.
1. If you are not able to run bash scripts then do the following:

View File

@ -4,12 +4,7 @@ remove_if_directory_exists() {
if [ -d "$1" ]; then rm -Rf "$1"; fi
}
case "$1" in
"unstable")
BRANCH="unstable";;
*)
BRANCH="master";;
esac
BRANCH="master";
REPOSITORY='https://github.com/tradingview/charting_library/'
@ -19,8 +14,8 @@ remove_if_directory_exists "$LATEST_HASH"
git clone -q --depth 1 -b "$BRANCH" $REPOSITORY "$LATEST_HASH"
remove_if_directory_exists "app/src/main/assets/charting_library/charting_library"
remove_if_directory_exists "app/src/main/assets/charting_library"
cp -r "$LATEST_HASH/charting_library" "app/src/main/assets/charting_library/charting_library"
cp -r "$LATEST_HASH" "app/src/main/assets/charting_library"
remove_if_directory_exists "$LATEST_HASH"