File tree Expand file tree Collapse file tree 4 files changed +11
-15
lines changed Expand file tree Collapse file tree 4 files changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ jobs:
125
125
126
126
steps :
127
127
- name : Checkout
128
- uses : actions/checkout@v4.1.7
128
+ uses : actions/checkout@v4.2.0
129
129
with :
130
130
fetch-depth : 0
131
131
Original file line number Diff line number Diff line change @@ -103,6 +103,12 @@ requires = [
103
103
" tzdata" ,
104
104
]
105
105
106
+ base_theme = " Theme.MaterialComponents.Light.DarkActionBar"
107
+
108
+ build_gradle_dependencies = [
109
+ " com.google.android.material:material:1.11.0" ,
110
+ ]
111
+
106
112
# support_package = "../Python-Android-support/dist/Python-3.13-Android-support.custom.zip"
107
113
# template = "../../templates/briefcase-Android-gradle-template"
108
114
Original file line number Diff line number Diff line change 1
1
######################################################################
2
2
# Android App configuration
3
3
#######################################################################
4
- from rubicon .java import JavaClass , JavaInterface
4
+ from java import dynamic_proxy
5
+ from org .beeware .android import IPythonApp , MainActivity
5
6
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" )
10
7
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 )):
17
9
def __init__ (self , app ):
18
10
super ().__init__ ()
19
11
self ._impl = app
Original file line number Diff line number Diff line change 11
11
12
12
def test_ctypes ():
13
13
"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
17
15
18
16
sample_url = URL ("https://beeware.org/contributing" )
19
17
You can’t perform that action at this time.
0 commit comments