Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build succesful on ubuntu 22, Samsung note 20 release tested. #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

poetry:
poetry install

buildozer-android:
poetry run buildozer android debug deploy

buildozer-requirements:
sudo apt install -y git zip unzip openjdk-8-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev libssl-dev

buildozer-cleanup:
rm -rf .buildozer
6 changes: 3 additions & 3 deletions buildozer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ version.filename = %(source.dir)s/main.py

# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3,kivy,oscpy
requirements = python3,kivy,oscpy

# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
Expand All @@ -53,11 +53,11 @@ requirements = python3,kivy,oscpy
#icon.filename = %(source.dir)s/data/icon.png

# (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
orientation = all
orientation = landscape

# (list) List of service to declare
services = Pong:service.py

# services = Pong:service.py:foreground:sticky
#
# OSX Specific
#
Expand Down
229 changes: 229 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tool.poetry]
name = "kivy-service-osc"
version = "0.1.0"
description = ""
authors = ["kwuite <[email protected]>"]
readme = "README.md"
packages = [{include = "kivy_service_osc"}]

[tool.poetry.dependencies]
python = "^3.7.13"
buildozer = "^1.5.0"
cython = "^0.29.33"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
5 changes: 5 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ def start_service(self):
self.mActivity = autoclass(u'org.kivy.android.PythonActivity').mActivity
argument = ''
service.start(self.mActivity, argument)
# service.start(self.mActivity, 'small_icon', 'title', 'content' , argument)
self.service = service

# # Service restart
# # https://python-for-android.readthedocs.io/en/latest/services/
# self.service.mActivity.setAutoRestartService(True)

elif platform in ('linux', 'linux2', 'macos', 'win'):
from runpy import run_path
Expand Down