From fc9e7b01104b06ad637bbfc86cf5e19f5f86f34a Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Tue, 23 Jun 2020 15:16:47 +0300 Subject: [PATCH] Add test app --- test_app/buildozer.spec | 24 ++++++++++++++++++++++++ test_app/main.kv | 11 +++++++++++ test_app/main.py | 17 +++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 test_app/buildozer.spec create mode 100644 test_app/main.kv create mode 100644 test_app/main.py diff --git a/test_app/buildozer.spec b/test_app/buildozer.spec new file mode 100644 index 0000000..ef960b1 --- /dev/null +++ b/test_app/buildozer.spec @@ -0,0 +1,24 @@ +[app] + +title = Test App +package.name = testapp +package.domain = org.test + +source.dir = . +source.include_exts = py,png,jpg,kv,atlas + +version = 0.1 +requirements = python3,kivy + +orientation = portrait +fullscreen = 0 +android.arch = armeabi-v7a + +# iOS specific +ios.kivy_ios_url = https://github.com/kivy/kivy-ios +ios.kivy_ios_branch = master +ios.ios_deploy_url = https://github.com/phonegap/ios-deploy +ios.ios_deploy_branch = 1.7.0 + +[buildozer] +log_level = 2 diff --git a/test_app/main.kv b/test_app/main.kv new file mode 100644 index 0000000..c00d327 --- /dev/null +++ b/test_app/main.kv @@ -0,0 +1,11 @@ +BoxLayout: + orientation: "vertical" + + Label: + id: hello_label + text: "Hello World" + on_text: if len(self.text) > 30: self.text = "Stop clicking!" + + Button: + text: "Click me!" + on_release: hello_label.text += "!" diff --git a/test_app/main.py b/test_app/main.py new file mode 100644 index 0000000..67b2d08 --- /dev/null +++ b/test_app/main.py @@ -0,0 +1,17 @@ +""" +Simple Hello World app to test Buildozer Action. + +It builds Kivy app with file main.kv. +""" + +from kivy.app import App +from kivy.lang import Builder + + +class MainApp(App): + def build(self): + return Builder.load_file("main.kv") + + +if __name__ == "__main__": + MainApp().run()