mirror of
https://github.com/ArtemSBulgakov/buildozer-action.git
synced 2024-08-16 10:09:52 +02:00
Add test app
This commit is contained in:
parent
4c5b55540b
commit
fc9e7b0110
3 changed files with 52 additions and 0 deletions
24
test_app/buildozer.spec
Normal file
24
test_app/buildozer.spec
Normal file
|
@ -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
|
11
test_app/main.kv
Normal file
11
test_app/main.kv
Normal file
|
@ -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 += "!"
|
17
test_app/main.py
Normal file
17
test_app/main.py
Normal file
|
@ -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()
|
Loading…
Reference in a new issue