Skip to content

Commit 4a39cfe

Browse files
authored
Switch master -> main (#15)
* Switch master -> main * CODEOWNERS added
1 parent 5fbe208 commit 4a39cfe

File tree

7 files changed

+47
-12
lines changed

7 files changed

+47
-12
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.kt]
13+
indent_style = space
14+
indent_size = 4
15+
max_line_length = 120
16+
17+
[CODEOWNERS]
18+
indent_style = tab

.github/workflows/check-urls.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: CI
22

33
# Controls when the action will run. Triggers the workflow on push or pull request
4-
# events but only for the master branch
4+
# events but only for the main branch
55
on:
66
push:
7-
branches: [ master ]
7+
branches: [ master, main ]
88
pull_request:
9-
branches: [ master ]
9+
branches: [ master, main ]
1010

1111
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1212
jobs:

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Aspose Pty Ltd
3+
Copyright (c) 2022 Aspose Pty Ltd
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies {
3434
implementation 'androidx.core:core-ktx:1.3.2'
3535
implementation 'androidx.appcompat:appcompat:1.2.0'
3636
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
37-
implementation 'com.aspose:aspose-barcode-cloud:21.10.0'
37+
implementation 'com.aspose:aspose-barcode-cloud:22.7.0'
3838
implementation 'com.google.android.material:material:1.3.0'
3939
testImplementation 'junit:junit:4.13.2'
4040
androidTestImplementation 'androidx.test.ext:junit:1.1.2'

app/src/main/java/com/example/asposebarcodecloud/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose">
4-
* Copyright (c) 2021 Aspose.BarCode for Cloud
4+
* Copyright (c) 2022 Aspose.BarCode for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

scripts/check-urls-in-file.py

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,32 @@
77

88
URL_REGEX = re.compile(r"""(http[s]*://[^{})"'<>#\s]+)[)"'<>#\s]""")
99

10-
GOOD_URLS = set(['https://www.aspose.cloud'])
10+
GOOD_URLS = set(
11+
[
12+
"https://www.aspose.cloud",
13+
"https://products.aspose.cloud/barcode/",
14+
]
15+
)
1116
BROKEN_URLS = collections.defaultdict(list)
1217

1318

1419
def check_url(url):
15-
with open(os.devnull, 'w') as devnull:
16-
ret_code = subprocess.call(['curl', '-sSf', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0', url], stdout=devnull)
20+
with open(os.devnull, "w") as devnull:
21+
ret_code = subprocess.call(
22+
[
23+
"curl",
24+
"-sSf",
25+
"--user-agent",
26+
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0",
27+
url,
28+
],
29+
stdout=devnull,
30+
)
1731
return ret_code == 0
1832

1933

2034
def check_file(filename):
21-
with open(filename, 'r') as f:
35+
with open(filename, "r") as f:
2236
urls = frozenset(URL_REGEX.findall(f.read()))
2337

2438
for url in sorted(urls):
@@ -40,10 +54,12 @@ def main():
4054
check_file(filename.strip())
4155

4256
for url, files in BROKEN_URLS.items():
43-
print("BROKEN URL: '%s' in files: %s" % (url, ', '.join(files)), file=sys.stderr)
57+
print(
58+
"BROKEN URL: '%s' in files: %s" % (url, ", ".join(files)), file=sys.stderr
59+
)
4460
if BROKEN_URLS:
4561
exit(1)
4662

4763

48-
if __name__ == '__main__':
64+
if __name__ == "__main__":
4965
main()

0 commit comments

Comments
 (0)