Skip to content

Commit

Permalink
docs: updated Play Store metadata and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 13, 2023
1 parent 20015bd commit 536a7dd
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 18 deletions.
41 changes: 26 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ WEBUI_SRCDIR := aw-server-rust/aw-webui
WEBUI_DISTDIR := $(WEBUI_SRCDIR)/dist

# Main targets
all: aw-server-rust
all: aw-server-rust metadata
build: all
metadata: fastlane/metadata/android/en-US/images/icon.png

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

TARGET := aw-server-rust/target
TARGET_arm7 := $(TARGET)/armv7-linux-androideabi
TARGET_arm8 := $(TARGET)/aarch64-linux-android
TARGET_x64 := $(TARGET)/x86_64-linux-android
TARGET_x86 := $(TARGET)/i686-linux-android
TARGETDIR := aw-server-rust/target
TARGETDIR_arm7 := $(TARGETDIR)/armv7-linux-androideabi
TARGETDIR_arm8 := $(TARGETDIR)/aarch64-linux-android
TARGETDIR_x64 := $(TARGETDIR)/x86_64-linux-android
TARGETDIR_x86 := $(TARGETDIR)/i686-linux-android

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

# There must be a better way to do this without repeating almost the same rule over and over?
# NOTE: These must be hard links for CI caching to work
$(JNI_arm7)/libaw_server.so: $(TARGET_arm7)/$(RELEASE_TYPE)/libaw_server.so
$(JNI_arm7)/libaw_server.so: $(TARGETDIR_arm7)/$(RELEASE_TYPE)/libaw_server.so
mkdir -p $$(dirname $@)
ln -fnv $$(pwd)/$^ $@
$(JNI_arm8)/libaw_server.so: $(TARGET_arm8)/$(RELEASE_TYPE)/libaw_server.so
# if target is empty, then create symlink
if [ -z "$(TARGET)" ] || [ "$(TARGET)" == "arm" ]; then ln -fnv $$(pwd)/$^ $@; fi
$(JNI_arm8)/libaw_server.so: $(TARGETDIR_arm8)/$(RELEASE_TYPE)/libaw_server.so
mkdir -p $$(dirname $@)
ln -fnv $$(pwd)/$^ $@
$(JNI_x86)/libaw_server.so: $(TARGET_x86)/$(RELEASE_TYPE)/libaw_server.so
if [ -z "$(TARGET)" ] || [ "$(TARGET)" == "arm64" ]; then ln -fnv $$(pwd)/$^ $@; fi
$(JNI_x86)/libaw_server.so: $(TARGETDIR_x86)/$(RELEASE_TYPE)/libaw_server.so
mkdir -p $$(dirname $@)
ln -fnv $$(pwd)/$^ $@
$(JNI_x64)/libaw_server.so: $(TARGET_x64)/$(RELEASE_TYPE)/libaw_server.so
if [ -z "$(TARGET)" ] || [ "$(TARGET)" == "x86" ]; then ln -fnv $$(pwd)/$^ $@; fi
$(JNI_x64)/libaw_server.so: $(TARGETDIR_x64)/$(RELEASE_TYPE)/libaw_server.so
mkdir -p $$(dirname $@)
ln -fnv $$(pwd)/$^ $@
if [ -z "$(TARGET)" ] || [ "$(TARGET)" == "x86_64" ]; then ln -fnv $$(pwd)/$^ $@; fi

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

clean:
rm -rf mobile/src/main/assets/webui
rm -rf mobile/src/main/jniLibs

.PHONY: fastlane/metadata/android/en-US/images/icon.png
fastlane/metadata/android/en-US/images/icon.png: aw-server-rust/aw-webui/media/logo/logo.png
convert $< -resize 75% -gravity center -background white -extent 512x512 $@
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ To build aw-webui you need a recent version of node/npm installed. You can then

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

### Making a release

To make a release, make a signed tag and push it to GitHub:

```sh
git tag -s v0.1.0
git push origin refs/tags/v0.1.0
```

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`).

## More info

For more info, check out the main [ActivityWatch repo](https://github.com/ActivityWatch/activitywatch).
8 changes: 5 additions & 3 deletions fastlane/metadata/android/en-US/full_description.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
NOTE: ActivityWatch for Android is in an early stage of development and is NOT READY for general use.
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.

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.
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.

You can find the source of ActivityWatch for Android on GitHub: https://github.com/ActivityWatch/aw-android
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.

You can report issues and view the source code on GitHub: https://github.com/ActivityWatch/aw-android
Binary file modified fastlane/metadata/android/en-US/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 536a7dd

Please sign in to comment.