mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
add Crittercism App ID if available
This commit is contained in:
parent
d02481879b
commit
4b293ac89b
1 changed files with 8 additions and 1 deletions
|
@ -3,19 +3,26 @@
|
||||||
set -e -u
|
set -e -u
|
||||||
|
|
||||||
GCM_SENDER_ID=${GCM_SENDER_ID:-""}
|
GCM_SENDER_ID=${GCM_SENDER_ID:-""}
|
||||||
|
CRITTERCISM_APP_ID=${CRITTERCISM_APP_ID:-""}
|
||||||
|
|
||||||
if [ -z "$GCM_SENDER_ID" ]; then
|
if [ -z "$GCM_SENDER_ID" ]; then
|
||||||
echo "GCM_SENDER_ID empty; GCM use will be disabled" >&2
|
echo "GCM_SENDER_ID empty; GCM use will be disabled" >&2
|
||||||
fi
|
fi
|
||||||
|
if [ -z "$CRITTERCISM_APP_ID" ]; then
|
||||||
|
echo "CRITTERCISM_APP_ID empty; Crittercism will not be enabled" >&2
|
||||||
|
fi
|
||||||
|
|
||||||
PKG=$1
|
PKG=$1
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
// Auto-generated: DO NOT CHECK THIS IN until questions about
|
// Auto-generated: DO NOT CHECK THIS IN until questions about
|
||||||
// obscuring the id are cleared up
|
// obscuring various ids are cleared up. For now they're not meant
|
||||||
|
// to be committed to public repos.
|
||||||
|
|
||||||
package org.eehouse.android.$PKG;
|
package org.eehouse.android.$PKG;
|
||||||
|
|
||||||
public class GCMConsts {
|
public class GCMConsts {
|
||||||
public static final String SENDER_ID = "${GCM_SENDER_ID}";
|
public static final String SENDER_ID = "${GCM_SENDER_ID}";
|
||||||
|
public static final String CRITTERCISM_APP_ID = "${CRITTERCISM_APP_ID}";
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue