mirror of
https://github.com/dstark5/Openlib.git
synced 2025-09-19 13:33:35 +08:00
Compare commits
8 Commits
v1.0.5-bet
...
v1.0.6-bet
Author | SHA1 | Date | |
---|---|---|---|
d655a4bd32 | |||
9b696c7e9d | |||
cbbe049ef8 | |||
cddaeb553a | |||
ced66d0d1c | |||
17dcbb05b3 | |||
27e43a358c | |||
1715b73494 |
@ -97,7 +97,7 @@ Please report bugs via the [issue tracker](https://github.com/dstark5/Openlib/is
|
|||||||
|
|
||||||
If you like Openlib, you're welcome to send a donation.
|
If you like Openlib, you're welcome to send a donation.
|
||||||
|
|
||||||
#### [Donate To Anna’s Archive](https://annas-archive.org/donate?tier=1).
|
#### [Donate To Anna’s Archive.](https://annas-archive.org/donate?tier=1)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
@ -166,26 +166,24 @@ class AnnasArchieve {
|
|||||||
|
|
||||||
if (ul != null) {
|
if (ul != null) {
|
||||||
var anchorTags = [];
|
var anchorTags = [];
|
||||||
if (ul.length == 2) {
|
|
||||||
anchorTags = ul[1].querySelectorAll('a');
|
for (var e in ul) {
|
||||||
} else {
|
anchorTags.insertAll(0, e.querySelectorAll('a'));
|
||||||
anchorTags = ul[0].querySelectorAll('a');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var element in anchorTags) {
|
for (var element in anchorTags) {
|
||||||
if (element.attributes['href']!.startsWith('https://')) {
|
if (element.attributes['href'] != null &&
|
||||||
if (element.attributes['href'] != null &&
|
|
||||||
element.attributes['href'].startsWith('https://1lib.sk') !=
|
|
||||||
true) {
|
|
||||||
mirrors.add(element.attributes['href']!);
|
|
||||||
}
|
|
||||||
} else if (element.attributes['href'] != null &&
|
|
||||||
element.attributes['href']!.startsWith('/slow_download')) {
|
element.attributes['href']!.startsWith('/slow_download')) {
|
||||||
String? url = await _getMirrorLink(
|
String? url = await _getMirrorLink(
|
||||||
'$baseUrl${element.attributes['href']!}', userAgent, cookie);
|
'$baseUrl${element.attributes['href']!}', userAgent, cookie);
|
||||||
if (url != null && url.isNotEmpty) {
|
if (url != null && url.isNotEmpty) {
|
||||||
mirrors.add(url);
|
mirrors.add(url);
|
||||||
}
|
}
|
||||||
|
} else if (element.attributes['href']!.startsWith('https://')) {
|
||||||
|
if (element.attributes['href'] != null &&
|
||||||
|
element.attributes['href'].contains('ipfs') == true) {
|
||||||
|
mirrors.add(element.attributes['href']!);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ class AboutPage extends StatelessWidget {
|
|||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(left: 7, right: 7, top: 5),
|
padding: EdgeInsets.only(left: 7, right: 7, top: 5),
|
||||||
child: Text(
|
child: Text(
|
||||||
"1.0.5",
|
"1.0.6",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 1.0.5+8
|
version: 1.0.6+9
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.0.5 <4.0.0'
|
sdk: '>=3.0.5 <4.0.0'
|
||||||
|
@ -10,6 +10,11 @@ include(${EPHEMERAL_DIR}/generated_config.cmake)
|
|||||||
# https://github.com/flutter/flutter/issues/57146.
|
# https://github.com/flutter/flutter/issues/57146.
|
||||||
set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
|
set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
|
||||||
|
|
||||||
|
# Set fallback configurations for older versions of the flutter tool.
|
||||||
|
if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
|
||||||
|
set(FLUTTER_TARGET_PLATFORM "windows-x64")
|
||||||
|
endif()
|
||||||
|
|
||||||
# === Flutter Library ===
|
# === Flutter Library ===
|
||||||
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
|
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
|
||||||
|
|
||||||
@ -92,7 +97,7 @@ add_custom_command(
|
|||||||
COMMAND ${CMAKE_COMMAND} -E env
|
COMMAND ${CMAKE_COMMAND} -E env
|
||||||
${FLUTTER_TOOL_ENVIRONMENT}
|
${FLUTTER_TOOL_ENVIRONMENT}
|
||||||
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
|
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
|
||||||
windows-x64 $<CONFIG>
|
${FLUTTER_TARGET_PLATFORM} $<CONFIG>
|
||||||
VERBATIM
|
VERBATIM
|
||||||
)
|
)
|
||||||
add_custom_target(flutter_assemble DEPENDS
|
add_custom_target(flutter_assemble DEPENDS
|
||||||
|
Reference in New Issue
Block a user