Skip to content

Commit 1ae666d

Browse files
committed
android webview is too slow, using geckoview instead
1 parent 71ad4cd commit 1ae666d

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

ghcjs/currency-converter/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ amountWidget st loc =
545545
(parseMoney input == Just output)
546546
|| (input == inspectMoneyAmount output)
547547
onBlurAction =
548-
pureUpdate 0 $ \st' ->
548+
pureUpdate 300 $ \st' ->
549549
if valid
550550
then st'
551551
else

ghcjs/currency-converter/android.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ with (import ./default.nix); let
5151
--android --assetPath static
5252
${pkgs.nodejs}/bin/npx trapeze run trapeze.yaml -y \
5353
--android-project android
54+
printf "include ':capacitor-android'\nproject(':capacitor-android').projectDir = new File('../../../pub/capacitor-geckoview/capacitor')" > ./android/capacitor.settings.gradle
5455
)
5556
'';
5657
};

ghcjs/currency-converter/trapeze.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,17 @@ platforms:
99
target: manifest/application/activity
1010
attrs:
1111
android:label: "@string/app_name"
12+
gradle:
13+
- file: build.gradle
14+
target:
15+
allprojects:
16+
repositories:
17+
replace:
18+
repositories: |
19+
{
20+
maven {
21+
url 'https://maven.mozilla.org/maven2/'
22+
}
23+
google()
24+
mavenCentral()
25+
}

0 commit comments

Comments
 (0)