mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
Analytics | Storing api keys (#1671)
This commit is contained in:
parent
c3fab7349b
commit
2e092aa035
5 changed files with 34 additions and 8 deletions
|
@ -2,9 +2,13 @@
|
|||
|
||||
TOKEN=$1
|
||||
USER=$2
|
||||
AMPLITUDE_RELEASE_KEY=$3
|
||||
AMPLITUDE_DEBUG_KEY=$4
|
||||
|
||||
GITHUB_USER_PROPERTY="gpr.usr"
|
||||
GITHUB_KEY_PROPERTY="gpr.key"
|
||||
AMPLITUDE_DEBUG_PROPERTY="amplitude.debug"
|
||||
AMPLITUDE_RELEASE_PROPERTY="amplitude.release"
|
||||
|
||||
if [ "$TOKEN" = "" ]; then
|
||||
echo "ERROR: token is empty"
|
||||
|
@ -16,8 +20,24 @@ if [ "$USER" = "" ]; then
|
|||
exit 1
|
||||
fi;
|
||||
|
||||
if [ "$AMPLITUDE_RELEASE_KEY" = "" ]; then
|
||||
echo "ERROR: amplitude.release is empty"
|
||||
exit 1
|
||||
fi;
|
||||
|
||||
if [ "$AMPLITUDE_DEBUG_KEY" = "" ]; then
|
||||
echo "ERROR: amplitude.debug is empty"
|
||||
exit 1
|
||||
fi;
|
||||
|
||||
rm -rf github.properties
|
||||
touch github.properties
|
||||
|
||||
echo "$GITHUB_USER_PROPERTY=$USER" >> github.properties
|
||||
echo "$GITHUB_KEY_PROPERTY=$TOKEN" >> github.properties
|
||||
echo "$GITHUB_KEY_PROPERTY=$TOKEN" >> github.properties
|
||||
|
||||
rm -rf apikeys.properties
|
||||
touch apikeys.properties
|
||||
|
||||
echo "$AMPLITUDE_DEBUG_PROPERTY=\"$AMPLITUDE_DEBUG_KEY\"" >> apikeys.properties
|
||||
echo "$AMPLITUDE_RELEASE_PROPERTY=\"$AMPLITUDE_RELEASE_KEY\"" >> apikeys.properties
|
Loading…
Add table
Add a link
Reference in a new issue