diff --git a/.gitignore b/.gitignore index 6c0fc1d9e..73bafdf5f 100644 --- a/.gitignore +++ b/.gitignore @@ -83,7 +83,7 @@ media/safari/NewsBlur.safariextz clients/android/NewsBlur/.idea clients/android/NewsBlur/.gradle clients/android/NewsBlur/build.gradle -clients/android/NewsBlur/gradle* +clients/android/NewsBlur/gradlew* clients/android/NewsBlur/settings.gradle /docker/volumes/* diff --git a/clients/android/NewsBlur/.gitignore b/clients/android/NewsBlur/.gitignore index e42440e09..44e1f4ad7 100644 --- a/clients/android/NewsBlur/.gitignore +++ b/clients/android/NewsBlur/.gitignore @@ -14,6 +14,5 @@ libs/ActionBarSherlock/ .project .gradle/ app/ -gradle/ *.gradle !build.gradle diff --git a/clients/android/NewsBlur/AndroidManifest.xml b/clients/android/NewsBlur/AndroidManifest.xml index 6c0853177..e4cc8a8c8 100644 --- a/clients/android/NewsBlur/AndroidManifest.xml +++ b/clients/android/NewsBlur/AndroidManifest.xml @@ -12,13 +12,15 @@ android:label="@string/newsblur" android:theme="@style/NewsBlurTheme" android:hardwareAccelerated="true" - android:fullBackupContent="@xml/backupscheme" > + android:fullBackupContent="@xml/backupscheme" + android:name=".NbApplication"> + android:theme="@style/splashScreen" + android:noHistory="true" + android:exported="true"> @@ -146,7 +148,8 @@ - + @@ -163,7 +166,8 @@ - + @@ -183,7 +187,8 @@ android:resource="@xml/file_paths" /> - + @@ -214,6 +219,8 @@ + + diff --git a/clients/android/NewsBlur/build.gradle b/clients/android/NewsBlur/build.gradle index 005d5abf8..d1ce10fda 100644 --- a/clients/android/NewsBlur/build.gradle +++ b/clients/android/NewsBlur/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlin_version = '1.5.30' + ext.kotlin_version = '1.6.0' repositories { mavenCentral() maven { @@ -9,7 +9,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:7.0.0' + classpath 'com.android.tools.build:gradle:7.0.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -27,28 +27,29 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation 'androidx.fragment:fragment-ktx:1.3.6' + implementation 'androidx.fragment:fragment-ktx:1.4.0' implementation 'androidx.recyclerview:recyclerview:1.2.1' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' implementation 'com.squareup.okhttp3:okhttp:4.9.2' implementation 'com.google.code.gson:gson:2.8.6' implementation 'com.android.billingclient:billing:3.0.3' implementation 'nl.dionsegijn:konfetti:1.2.2' - implementation 'com.google.android.play:core:1.10.0' - implementation "com.google.android.material:material:1.3.0" + implementation 'com.google.android.play:core:1.10.2' + implementation "com.google.android.material:material:1.4.0" implementation "androidx.preference:preference-ktx:1.1.1" - implementation "androidx.browser:browser:1.3.0" - implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.3.1" + implementation "androidx.browser:browser:1.4.0" + implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.4.0" + implementation 'androidx.lifecycle:lifecycle-process:2.4.0' + implementation 'androidx.core:core-splashscreen:1.0.0-alpha02' } android { - compileSdkVersion 30 + compileSdkVersion 31 defaultConfig { applicationId "com.newsblur" minSdkVersion 21 - targetSdkVersion 30 - versionCode 196 + targetSdkVersion 31 + versionCode 198 versionName "11.1.1" } compileOptions.with { diff --git a/clients/android/NewsBlur/gradle/wrapper/gradle-wrapper.jar b/clients/android/NewsBlur/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 000000000..f6b961fd5 Binary files /dev/null and b/clients/android/NewsBlur/gradle/wrapper/gradle-wrapper.jar differ diff --git a/clients/android/NewsBlur/gradle/wrapper/gradle-wrapper.properties b/clients/android/NewsBlur/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..0a2aa0003 --- /dev/null +++ b/clients/android/NewsBlur/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,8 @@ +#Wed Aug 11 15:59:29 EDT 2021 +distributionBase=GRADLE_USER_HOME +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip +distributionPath=wrapper/dists +zipStorePath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +android.enableJetifier=true +android.useAndroidX=true diff --git a/clients/android/NewsBlur/res/drawable-nodpi/ic_splash_screen.xml b/clients/android/NewsBlur/res/drawable-nodpi/ic_splash_screen.xml new file mode 100644 index 000000000..4a58c18eb --- /dev/null +++ b/clients/android/NewsBlur/res/drawable-nodpi/ic_splash_screen.xml @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/clients/android/NewsBlur/res/layout/activity_init.xml b/clients/android/NewsBlur/res/layout/activity_init.xml deleted file mode 100644 index 39fb0f495..000000000 --- a/clients/android/NewsBlur/res/layout/activity_init.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - diff --git a/clients/android/NewsBlur/res/values/strings.xml b/clients/android/NewsBlur/res/values/strings.xml index 00dc7b751..1c6efed29 100644 --- a/clients/android/NewsBlur/res/values/strings.xml +++ b/clients/android/NewsBlur/res/values/strings.xml @@ -163,6 +163,7 @@ Rename feed List style… Save Search + Web search List Grid (fine) Grid (medium) @@ -650,4 +651,6 @@ story_notification_channel New Stories Go to feed + + (function(){return window.getSelection().toString()})() diff --git a/clients/android/NewsBlur/res/values/styles.xml b/clients/android/NewsBlur/res/values/styles.xml index 14caaf94d..158f6cfae 100644 --- a/clients/android/NewsBlur/res/values/styles.xml +++ b/clients/android/NewsBlur/res/values/styles.xml @@ -11,10 +11,10 @@ 0 -