-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated bromite base version, added new build scripts * Sync dependencies on fresh checkout for bromite * Add initial WifiAutoConnect patch * Remove unnecessary patch * Add wifi autoconnect to patch list * Fix import of wifi_autoconnect package * Add downloader script for wifi_autoconnect * Remove gateway from patch * Fix syntax error in new strings * Fix wifi autoconnect aar metadata * Build APK for trichrome * Fix java syntax errors * Fix more syntax errors * Fix naming for button label * Add agregore deps to trichrome template * Dont accidentally overwrite loadable_modules * Use public APK for build * Add null check for wifiAutoConnect methods * Default to Android 10 (sdk 29) as min version * Account for menu not being open * Show wifi state using toast * Fix up toast import * Fix method name for toast * Use latest daemon, specify default port * Don't try to change menu item text and just use toast
- Loading branch information
1 parent
0c906a9
commit 8a33f55
Showing
7 changed files
with
738 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
0001-AG-Rebrand-to-Agregore.patch | ||
0001-AG-IPFS-Daemon.patch | ||
0001-AG-Handle-IPFS-and-IPNS-URLs.patch | ||
0001-AG-Wifi-Auto-Connect.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
zeroconf-fix-2 | ||
v1.0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#!/usr/bin/env python3 | ||
|
||
''' | ||
This script will trigger a new build of the browser | ||
''' | ||
|
||
import os | ||
import argparse | ||
import requests | ||
|
||
from _load_vars import load_vars | ||
|
||
parser = argparse.ArgumentParser( | ||
description='Download the WifiAutoConnect AAR file' | ||
) | ||
|
||
tag_file_path = os.path.normpath(os.path.join( | ||
os.path.realpath(__file__), | ||
"../wifi_auto_connect_tag.txt" | ||
)) | ||
|
||
DEFAULT_VERSION = "" | ||
|
||
with open(tag_file_path, "r", encoding="utf8") as tag_file: | ||
DEFAULT_VERSION = tag_file.read().strip() | ||
|
||
DEFAULT_REPO = 'RangerMauve/WifiAutoConnect-Android' | ||
DEFAULT_BINARY_NAME = 'WifiAutoConnect.aar' | ||
|
||
parser.add_argument( | ||
'--version', | ||
default=DEFAULT_VERSION, | ||
help="What version tag to use for the library" | ||
) | ||
|
||
parser.add_argument( | ||
'--repo', | ||
default=DEFAULT_REPO, | ||
help="Name of the github repo to download from" | ||
) | ||
|
||
parser.add_argument( | ||
'--binary_name', | ||
default=DEFAULT_BINARY_NAME, | ||
help="Name of the aar file to download from the release" | ||
) | ||
|
||
args = load_vars(parser) | ||
|
||
chromium = args["chromium"] | ||
env = args["env"] | ||
|
||
version = args["version"] | ||
repo = args["repo"] | ||
binary_name = args["binary_name"] | ||
|
||
url = f"https://github.com/{repo}/releases/download/{version}/{binary_name}" | ||
|
||
# TODO: Reuse script for downloading | ||
|
||
print(f"Downloading {url}") | ||
|
||
response = requests.get(url, allow_redirects=True, stream=True) | ||
|
||
# Raise an exception if we get a 404 | ||
response.raise_for_status() | ||
|
||
download_location = os.path.join( | ||
chromium, | ||
"third_party/wifi_autoconnect/WifiAutoConnect.aar" | ||
) | ||
|
||
with open(download_location, 'wb') as file: | ||
file.write(response.content) | ||
|
||
print("Done!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.