-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ignore unimplemented SettingsClient.checkLocationSettings. * make main activity layout denser.
- Loading branch information
1 parent
5d50829
commit a73ed25
Showing
21 changed files
with
185 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
build/ | ||
dist/ | ||
captures/ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# To build you will need: | ||
# * Android SDK with platform-tools and build-tools installed: | ||
ANDROID_SDK=/opt/android-sdk | ||
# * apktool (brew install apktool) | ||
APKTOOL=apktool | ||
# * (optional) android-xml-formatter for re-formatting new disassemblies. | ||
# Get from https://github.com/ByteHamster/android-xml-formatter/ | ||
FORMATTER=~/Downloads/android-xml-formatter.jar | ||
|
||
PLATFORM_TOOLS=${ANDROID_SDK}/platform-tools | ||
BUILD_TOOLS=$(shell find ${ANDROID_SDK}/build-tools -depth 1 | sort -r | head -n1) | ||
|
||
KEYSTORE=~/.android/debug.keystore | ||
KEYSTORE_KEY=androiddebugkey | ||
KEYSTORE_PASS=pass:android | ||
|
||
.PHONY: format | ||
|
||
all: dist/com.fairtiq.android.apk | ||
|
||
dist/com.fairtiq.android-unsigned.apk: $(wildcard res/**/* smali*/**/* *) | ||
${APKTOOL} b --use-aapt2 . -o dist/com.fairtiq.android-unsigned.apk | ||
|
||
dist/com.fairtiq.android.apk: dist/com.fairtiq.android-unsigned.apk | ||
${BUILD_TOOLS}/zipalign -f -p 4 dist/com.fairtiq.android-unsigned.apk dist/com.fairtiq.android.apk | ||
${BUILD_TOOLS}/apksigner sign --ks ${KEYSTORE} --ks-key-alias ${KEYSTORE_KEY} --ks-pass ${KEYSTORE_PASS} \ | ||
./dist/com.fairtiq.android.apk | ||
|
||
install: dist/com.fairtiq.android.apk | ||
# for some reason streaming makes the app lose data occasionally | ||
${PLATFORM_TOOLS}/adb install -r -d -g --no-streaming dist/com.fairtiq.android.apk | ||
|
||
format: | ||
java -jar ${FORMATTER} AndroidManifest.xml `find res/layout* -name \*.xml` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- toggle component sizes itself to the graphic: scale the original in half --> | ||
<layer-list | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:id="@id/outerTrack" android:left="0.0dip" android:bottom="0.0dip"> | ||
<shape android:shape="rectangle"> | ||
<size android:height="100.0dip" /> | ||
<size android:height="50.0dip" /> | ||
<solid android:color="@color/color_eef0f5" /> | ||
<corners android:radius="200.0dip" /> | ||
<corners android:radius="100.0dip" /> | ||
</shape> | ||
</item> | ||
<item android:id="@id/innerTrack" android:left="9.0dip" android:top="9.0dip" android:right="9.0dip" android:bottom="9.0dip"> | ||
<shape android:shape="rectangle"> | ||
<size android:height="88.0dip" /> | ||
<size android:height="44.0dip" /> | ||
<gradient android:startColor="#00ffffff" android:endColor="#ffffffff" android:useLevel="false" android:angle="0.0" android:type="linear" android:centerY="0.5" android:centerColor="#16ffffff" android:rotation="-180.0" /> | ||
<corners android:radius="200.0dip" /> | ||
<corners android:radius="100.0dip" /> | ||
</shape> | ||
</item> | ||
</layer-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.