html2apk 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -889,7 +889,12 @@ h2 {
889
889
  gap: 10px;
890
890
  }
891
891
 
892
- .code-card code {
892
+ .code-card-top {
893
+ display: grid;
894
+ gap: 8px;
895
+ }
896
+
897
+ .code-card-top code {
893
898
  overflow-wrap: anywhere;
894
899
  color: #d6e4f7;
895
900
  background: #0c1117;
@@ -897,7 +902,7 @@ h2 {
897
902
  padding: 10px;
898
903
  }
899
904
 
900
- .code-card span {
905
+ .code-card-top span {
901
906
  color: var(--blue);
902
907
  font-weight: 800;
903
908
  }
@@ -923,6 +928,59 @@ h2 {
923
928
  padding-top: 10px;
924
929
  }
925
930
 
931
+ .copy-example {
932
+ border-top: 1px solid var(--line);
933
+ padding-top: 12px;
934
+ display: grid;
935
+ gap: 8px;
936
+ }
937
+
938
+ .copy-example-header {
939
+ display: flex;
940
+ align-items: center;
941
+ justify-content: space-between;
942
+ gap: 10px;
943
+ }
944
+
945
+ .copy-example-header strong {
946
+ font-size: .88rem;
947
+ }
948
+
949
+ .copy-code-button {
950
+ min-height: 34px;
951
+ border: 1px solid var(--line);
952
+ border-radius: 8px;
953
+ padding: 0 12px;
954
+ background: var(--bg);
955
+ color: var(--blue);
956
+ font-weight: 800;
957
+ cursor: pointer;
958
+ }
959
+
960
+ .copy-code-button.copied {
961
+ color: var(--green);
962
+ }
963
+
964
+ .copy-code-button.copy-error {
965
+ color: var(--red);
966
+ }
967
+
968
+ .copy-example pre {
969
+ margin: 0;
970
+ max-height: 260px;
971
+ overflow: auto;
972
+ border-radius: 8px;
973
+ background: #0c1117;
974
+ }
975
+
976
+ .copy-example pre code {
977
+ display: block;
978
+ padding: 12px;
979
+ color: #d6e4f7;
980
+ font: 12px/1.55 Consolas, "Courier New", monospace;
981
+ white-space: pre;
982
+ }
983
+
926
984
  .success-view {
927
985
  min-height: 100%;
928
986
  display: none;
@@ -27,6 +27,7 @@
27
27
  <config-file target="AndroidManifest.xml" parent="/manifest/application">
28
28
  <service android:name="dev.html2apk.bridge.FloatingIconService" android:exported="false" />
29
29
  <receiver android:name="dev.html2apk.bridge.NotificationReceiver" android:exported="false" />
30
+ <receiver android:name="dev.html2apk.bridge.NotificationClickReceiver" android:exported="false" />
30
31
  <receiver android:name="dev.html2apk.bridge.BootReceiver" android:enabled="true" android:exported="true">
31
32
  <intent-filter>
32
33
  <action android:name="android.intent.action.BOOT_COMPLETED" />
@@ -38,6 +39,7 @@
38
39
  <source-file src="src/android/Html2ApkBridge.java" target-dir="app/src/main/java/dev/html2apk/bridge" />
39
40
  <source-file src="src/android/FloatingIconService.java" target-dir="app/src/main/java/dev/html2apk/bridge" />
40
41
  <source-file src="src/android/NotificationReceiver.java" target-dir="app/src/main/java/dev/html2apk/bridge" />
42
+ <source-file src="src/android/NotificationClickReceiver.java" target-dir="app/src/main/java/dev/html2apk/bridge" />
41
43
  <source-file src="src/android/BootReceiver.java" target-dir="app/src/main/java/dev/html2apk/bridge" />
42
44
  <source-file src="src/android/NotificationStore.java" target-dir="app/src/main/java/dev/html2apk/bridge" />
43
45
  <framework src="androidx.core:core:1.12.0" />