Skip to content

Commit

Permalink
Update androidx.preference to 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nhirokinet committed May 21, 2022
1 parent 873f8c5 commit bd820d4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Expand Up @@ -31,7 +31,7 @@ android {

dependencies {
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.preference:preference:1.2.0'

testImplementation 'junit:junit:4.13.2'

Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/values/strings.xml
Expand Up @@ -228,6 +228,11 @@
\nBlue Line Console contains code from the following library, which Apache License, Version 2.0, is applied to.
\n
\n- Android Jetpack
\n- kotlinx-coroutines-android
\n- kotlinx-coroutines-core-jvm
\n- kotlin-stdlib
\n- JetBrains Java Annotations
\n- Google Guava
</string>

<!-- Legal English texts -->
Expand Down
17 changes: 13 additions & 4 deletions ci/license-checker.py
Expand Up @@ -12,7 +12,9 @@ def main():
ok_count = 0

is_release = False
for line in subprocess.check_output(['./gradlew', 'androidDependencies']).decode('utf-8').split('\n'):
output = subprocess.check_output(['./gradlew', 'androidDependencies']).decode('utf-8')
print(output)
for line in output.split('\n'):
if line == '':
is_release = False

Expand All @@ -29,7 +31,12 @@ def main():
package_name = package_info[1]
package_version = package_info[2]

if not package_fullname.startswith('androidx.'):
if not package_fullname.startswith('androidx.')\
and package_name != 'kotlinx-coroutines-android'\
and package_name != 'kotlinx-coroutines-core-jvm'\
and not package_name.startswith('kotlin-stdlib')\
and not (package_name == 'annotations' and package_fullname == 'org.jetbrains')\
and package_fullname != 'com.google.guava':
print('Unknown package')
sys.exit(1)

Expand All @@ -51,10 +58,12 @@ def main():
for license_elem in licenses_elem.findall('{http://maven.apache.org/POM/4.0.0}license'):
license_name = license_elem.find('{http://maven.apache.org/POM/4.0.0}name').text
print(' License: ' + license_name)
assert(license_name == 'The Apache Software License, Version 2.0')
assert(license_name == 'The Apache Software License, Version 2.0' or
license_name == 'The Apache License, Version 2.0')
license_url = license_elem.find('{http://maven.apache.org/POM/4.0.0}url').text
print(' License URL: ' + license_url)
assert(license_url == 'http://www.apache.org/licenses/LICENSE-2.0.txt')
assert(license_url == 'https://www.apache.org/licenses/LICENSE-2.0.txt' or
license_url == 'http://www.apache.org/licenses/LICENSE-2.0.txt')
ok = True

if not ok:
Expand Down

0 comments on commit bd820d4

Please sign in to comment.