Skip to content

Commit 536a7dd

Browse files
committed
docs: updated Play Store metadata and icon
1 parent 20015bd commit 536a7dd

File tree

4 files changed

+42
-18
lines changed

4 files changed

+42
-18
lines changed

Makefile

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ WEBUI_SRCDIR := aw-server-rust/aw-webui
1616
WEBUI_DISTDIR := $(WEBUI_SRCDIR)/dist
1717

1818
# Main targets
19-
all: aw-server-rust
19+
all: aw-server-rust metadata
2020
build: all
21+
metadata: fastlane/metadata/android/en-US/images/icon.png
2122

2223
# builds an app bundle, puts it in dist
2324
build-bundle: dist/aw-android.aab
@@ -113,11 +114,11 @@ JNI_arm7 := $(JNILIBS)/armeabi-v7a
113114
JNI_x86 := $(JNILIBS)/x86
114115
JNI_x64 := $(JNILIBS)/x86_64
115116

116-
TARGET := aw-server-rust/target
117-
TARGET_arm7 := $(TARGET)/armv7-linux-androideabi
118-
TARGET_arm8 := $(TARGET)/aarch64-linux-android
119-
TARGET_x64 := $(TARGET)/x86_64-linux-android
120-
TARGET_x86 := $(TARGET)/i686-linux-android
117+
TARGETDIR := aw-server-rust/target
118+
TARGETDIR_arm7 := $(TARGETDIR)/armv7-linux-androideabi
119+
TARGETDIR_arm8 := $(TARGETDIR)/aarch64-linux-android
120+
TARGETDIR_x64 := $(TARGETDIR)/x86_64-linux-android
121+
TARGETDIR_x86 := $(TARGETDIR)/i686-linux-android
121122

122123
# Build webui specifically for Android (disabled update check, different default views, etc)
123124
export ON_ANDROID := -- --android
@@ -130,18 +131,19 @@ $(JNILIBS): $(JNI_arm7)/libaw_server.so $(JNI_arm8)/libaw_server.so $(JNI_x86)/l
130131

131132
# There must be a better way to do this without repeating almost the same rule over and over?
132133
# NOTE: These must be hard links for CI caching to work
133-
$(JNI_arm7)/libaw_server.so: $(TARGET_arm7)/$(RELEASE_TYPE)/libaw_server.so
134+
$(JNI_arm7)/libaw_server.so: $(TARGETDIR_arm7)/$(RELEASE_TYPE)/libaw_server.so
134135
mkdir -p $$(dirname $@)
135-
ln -fnv $$(pwd)/$^ $@
136-
$(JNI_arm8)/libaw_server.so: $(TARGET_arm8)/$(RELEASE_TYPE)/libaw_server.so
136+
# if target is empty, then create symlink
137+
if [ -z "$(TARGET)" ] || [ "$(TARGET)" == "arm" ]; then ln -fnv $$(pwd)/$^ $@; fi
138+
$(JNI_arm8)/libaw_server.so: $(TARGETDIR_arm8)/$(RELEASE_TYPE)/libaw_server.so
137139
mkdir -p $$(dirname $@)
138-
ln -fnv $$(pwd)/$^ $@
139-
$(JNI_x86)/libaw_server.so: $(TARGET_x86)/$(RELEASE_TYPE)/libaw_server.so
140+
if [ -z "$(TARGET)" ] || [ "$(TARGET)" == "arm64" ]; then ln -fnv $$(pwd)/$^ $@; fi
141+
$(JNI_x86)/libaw_server.so: $(TARGETDIR_x86)/$(RELEASE_TYPE)/libaw_server.so
140142
mkdir -p $$(dirname $@)
141-
ln -fnv $$(pwd)/$^ $@
142-
$(JNI_x64)/libaw_server.so: $(TARGET_x64)/$(RELEASE_TYPE)/libaw_server.so
143+
if [ -z "$(TARGET)" ] || [ "$(TARGET)" == "x86" ]; then ln -fnv $$(pwd)/$^ $@; fi
144+
$(JNI_x64)/libaw_server.so: $(TARGETDIR_x64)/$(RELEASE_TYPE)/libaw_server.so
143145
mkdir -p $$(dirname $@)
144-
ln -fnv $$(pwd)/$^ $@
146+
if [ -z "$(TARGET)" ] || [ "$(TARGET)" == "x86_64" ]; then ln -fnv $$(pwd)/$^ $@; fi
145147

146148
RUSTFLAGS_ANDROID="-C debuginfo=2 -Awarnings"
147149
# Explanation of RUSTFLAGS:
@@ -169,9 +171,18 @@ $(RS_SRCDIR)/target/%/$(RELEASE_TYPE)/libaw_server.so: $(RS_SOURCES) $(WEBUI_DIS
169171
.PHONY: $(WEBUI_DISTDIR)
170172
$(WEBUI_DISTDIR):
171173
# Ideally this sub-Makefile should not rebuild unless files have changed
172-
make --directory=aw-server-rust/aw-webui build
174+
# Don't run if SKIP_WEBUI is set
175+
if [ "$$SKIP_WEBUI" == "true" ]; then \
176+
echo "Skipping aw-webui build, as SKIP_WEBUI is set"; \
177+
else \
178+
echo "Building aw-webui"; \
179+
make --directory=aw-server-rust/aw-webui build; \
180+
fi
173181

174182
clean:
175183
rm -rf mobile/src/main/assets/webui
176184
rm -rf mobile/src/main/jniLibs
177185

186+
.PHONY: fastlane/metadata/android/en-US/images/icon.png
187+
fastlane/metadata/android/en-US/images/icon.png: aw-server-rust/aw-webui/media/logo/logo.png
188+
convert $< -resize 75% -gravity center -background white -extent 512x512 $@

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,17 @@ To build aw-webui you need a recent version of node/npm installed. You can then
5454

5555
Once both aw-server-rust and aw-webui is built, you can build the Android app as any other Android app using Android Studio.
5656

57+
### Making a release
58+
59+
To make a release, make a signed tag and push it to GitHub:
60+
61+
```sh
62+
git tag -s v0.1.0
63+
git push origin refs/tags/v0.1.0
64+
```
65+
66+
This will trigger a GitHub Actions workflow which will build the app and upload it to GitHub releases, and deploy it to the Play Store (including the metadata in `./fastlane/metadata/android`).
67+
5768
## More info
5869

5970
For more info, check out the main [ActivityWatch repo](https://github.com/ActivityWatch/activitywatch).
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
NOTE: ActivityWatch for Android is in an early stage of development and is NOT READY for general use.
1+
ActivityWatch is an open-source cross-platform application that tracks how you spend time on your devices, and keeps you in control of your data.
22

3-
ActivityWatch is an open-source cross-platform application that tracks how you spend time on your devices and keeps you in control of your data.
3+
It is the same ActivityWatch you know and love, but for Android! It builds on the same core as the desktop version, enabling us to offer the same features whichever platform you are on.
44

5-
You can find the source of ActivityWatch for Android on GitHub: https://github.com/ActivityWatch/aw-android
5+
Note about accessibility permission: the app allows users to optionally grant the accessibility permission to enable collection of browsing history, by tracking URLs from supported browsers.
6+
7+
You can report issues and view the source code on GitHub: https://github.com/ActivityWatch/aw-android
-16.5 KB
Loading

0 commit comments

Comments
 (0)