File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ jobs:
125125
126126 steps :
127127 - name : Checkout
128- uses : actions/checkout@v4.1.7
128+ uses : actions/checkout@v4.2.0
129129 with :
130130 fetch-depth : 0
131131
Original file line number Diff line number Diff line change @@ -103,6 +103,12 @@ requires = [
103103 " tzdata" ,
104104]
105105
106+ base_theme = " Theme.MaterialComponents.Light.DarkActionBar"
107+
108+ build_gradle_dependencies = [
109+ " com.google.android.material:material:1.11.0" ,
110+ ]
111+
106112# support_package = "../Python-Android-support/dist/Python-3.13-Android-support.custom.zip"
107113# template = "../../templates/briefcase-Android-gradle-template"
108114
Original file line number Diff line number Diff line change 11######################################################################
22# Android App configuration
33#######################################################################
4- from rubicon .java import JavaClass , JavaInterface
4+ from java import dynamic_proxy
5+ from org .beeware .android import IPythonApp , MainActivity
56
6- # The Android cookiecutter template creates an app whose main Activity is
7- # called `MainActivity`. The activity assumes that we will store a reference
8- # to an implementation/subclass of `IPythonApp` in it.
9- MainActivity = JavaClass ("org/beeware/android/MainActivity" )
107
11- # The `IPythonApp` interface in Java allows Python code to
12- # run on Android activity lifecycle hooks such as `onCreate()`.
13- IPythonApp = JavaInterface ("org/beeware/android/IPythonApp" )
14-
15-
16- class PythonApp (IPythonApp ):
8+ class PythonApp (dynamic_proxy (IPythonApp )):
179 def __init__ (self , app ):
1810 super ().__init__ ()
1911 self ._impl = app
Original file line number Diff line number Diff line change 1111
1212def test_ctypes ():
1313 "The FFI module has been compiled, and ctypes works on Java objects"
14- from rubicon .java import JavaClass
15-
16- URL = JavaClass ("java/net/URL" )
14+ from java .net import URL
1715
1816 sample_url = URL ("https://beeware.org/contributing" )
1917
You can’t perform that action at this time.
0 commit comments