Skip to content

Commit

Permalink
Merge pull request #93 from beeware/dependabot/github_actions/actions…
Browse files Browse the repository at this point in the history
…/checkout-4.2.0

Bump actions/checkout from 4.1.7 to 4.2.0
  • Loading branch information
freakboy3742 authored Sep 30, 2024
2 parents 42ea09b + adf9b2a commit fcba1c7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0
with:
fetch-depth: 0

Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ requires = [
"tzdata",
]

base_theme = "Theme.MaterialComponents.Light.DarkActionBar"

build_gradle_dependencies = [
"com.google.android.material:material:1.11.0",
]

# support_package = "../Python-Android-support/dist/Python-3.13-Android-support.custom.zip"
# template = "../../templates/briefcase-Android-gradle-template"

Expand Down
14 changes: 3 additions & 11 deletions src/testbed/android.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
######################################################################
# Android App configuration
#######################################################################
from rubicon.java import JavaClass, JavaInterface
from java import dynamic_proxy
from org.beeware.android import IPythonApp, MainActivity

# The Android cookiecutter template creates an app whose main Activity is
# called `MainActivity`. The activity assumes that we will store a reference
# to an implementation/subclass of `IPythonApp` in it.
MainActivity = JavaClass("org/beeware/android/MainActivity")

# The `IPythonApp` interface in Java allows Python code to
# run on Android activity lifecycle hooks such as `onCreate()`.
IPythonApp = JavaInterface("org/beeware/android/IPythonApp")


class PythonApp(IPythonApp):
class PythonApp(dynamic_proxy(IPythonApp)):
def __init__(self, app):
super().__init__()
self._impl = app
Expand Down
4 changes: 1 addition & 3 deletions tests/test_android.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

def test_ctypes():
"The FFI module has been compiled, and ctypes works on Java objects"
from rubicon.java import JavaClass

URL = JavaClass("java/net/URL")
from java.net import URL

sample_url = URL("https://beeware.org/contributing")

Expand Down

0 comments on commit fcba1c7

Please sign in to comment.