-
Notifications
You must be signed in to change notification settings - Fork 25
Home
xloem edited this page Apr 6, 2020
·
8 revisions
Welcome to the OpenWatch-Android wiki!
How can we breathe new life into this app?
Please edit this to move it towards being clear steps.
- Uses SDK API 18, which is Android 4.3 Jelly Bean.
- Uses SDK Build Tools 17.0.0 . In Android Studio, this means enabling in the SDK settings 'show package details' to find this old version.
- Uses gradle 1.6
- gradle 1.6 uses plaintext HTTP connections to repo1.maven.org, which nowadays only accepts HTTPS connections. One solution is to use
socat TCP-LISTEN:80,fork OPENSSL:151.101.248.209:443,openssl-commonname=repo1.maven.org
or to wrapopenssl s_client -connect 151.101.248.209:443
withnetcat
listener on localhost port 80, and add to/etc/hosts
(or equivalent hosts file) the line127.0.0.1 repo1.maven.org
. This lets gradle 1.6 download dependencies via a local proxy. - Libraries are stored as submodules, so one must
git submodule update --init
- The android support library is no longer part of the android SDK, so every
build.gradle
, even in dependency libraries, needs these lines added:
allprojects {
repositories {
// For gradle 4.1+:
// google()
maven {
url 'https://maven.google.com'
}
}
}
- The API secrets are not stored in the git repository. A quick stub to deal with that later is to make a file
app/OpenWatch/src/org/ale/openwatch/SECRETS.java
with this content:
package org.ale.openwatch;
public class SECRETS {
public static final String SSL_KEYSTORE_PASS = "ssl-keystore-pass";
public static final String MIXPANEL_KEY = "mixpanel-key";
public static final String GCM_SENDER_ID = "gcm-sender-id";
public static final String BUGSENSE_API_KEY = "bugsense-api-key";
public static final String TWITTER_CONSUMER_SECRET = "twitter-consumer-secret";
}
- You'll also want to make a file
app/OpenWatch/res/raw/owkeystore
, which can be empty for testing compilation.