1
- # Define the URL and the target directory
2
- ASKAR_URL=" https://github.com/openwallet-foundation/askar/releases/download/v0.3.2/library-ios-android.tar.gz"
3
- TARGET_DIR=" android/app/src/main/jniLibs"
4
-
5
- # Create the target directory if it doesn't exist
6
- mkdir -p $TARGET_DIR
7
-
8
- # Download the tar.gz file
9
- echo " Downloading $ASKAR_URL ..."
10
- curl -L " $ASKAR_URL " -o " $TARGET_DIR /library-ios-android.tar.gz"
11
-
12
- # Extract the contents to a temporary directory
13
- TEMP_DIR=$( mktemp -d)
14
- echo " Extracting contents..."
15
- tar -xzf " $TARGET_DIR /library-ios-android.tar.gz" -C $TEMP_DIR
16
-
17
- # Move the mobile/android directory to the target directory
18
- echo " Moving mobile/android to $TARGET_DIR ..."
19
- mv $TEMP_DIR /mobile/android/* $TARGET_DIR
20
-
21
- # Clean up the temporary directory and the downloaded tar.gz file
22
- rm -rf $TEMP_DIR
23
- rm " $TARGET_DIR /library-ios-android.tar.gz"
24
-
1
+ # Define the URL and the target directory
2
+ ASKAR_URL=" https://github.com/openwallet-foundation/askar/releases/download/v0.3.2/library-ios-android.tar.gz"
3
+ TARGET_DIR=" android/app/src/main/jniLibs"
4
+
5
+ # Create the target directory if it doesn't exist
6
+ mkdir -p $TARGET_DIR
7
+
8
+ # Download the tar.gz file
9
+ echo " Downloading $ASKAR_URL ..."
10
+ curl -L " $ASKAR_URL " -o " $TARGET_DIR /library-ios-android.tar.gz"
11
+
12
+ # Extract the contents to a temporary directory
13
+ TEMP_DIR=$( mktemp -d)
14
+ echo " Extracting contents..."
15
+ tar -xzf " $TARGET_DIR /library-ios-android.tar.gz" -C $TEMP_DIR
16
+
17
+ # Move the mobile/android directory to the target directory
18
+ echo " Moving mobile/android to $TARGET_DIR ..."
19
+ mv $TEMP_DIR /mobile/android/* $TARGET_DIR
20
+
21
+ # Clean up the temporary directory and the downloaded tar.gz file
22
+ rm -rf $TEMP_DIR
23
+ rm " $TARGET_DIR /library-ios-android.tar.gz"
24
+
25
25
echo " Done!"
0 commit comments