Skip to content

Commit

Permalink
huge update + bubbles api
Browse files Browse the repository at this point in the history
+ added new Bubbles API (Android 11+, might work on Android 10; not sure tho)
+ added TTS Settings (for phones with missing voices)
+ added slide-to-open menus in word items
+ fixed material theme issues
+ moved from TaskExecutor to custom AsyncTask
+ removed useless resources
+ some other bug fixes
  • Loading branch information
AwaisKing committed Jul 22, 2021
1 parent aec040c commit 486c19a
Show file tree
Hide file tree
Showing 136 changed files with 5,132 additions and 2,023 deletions.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 22 additions & 14 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

38 changes: 22 additions & 16 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ plugins {
}

android {
compileSdkVersion 30
compileSdk 30

defaultConfig {
applicationId 'awais.backworddictionary'

minSdkVersion 16
targetSdkVersion 30
minSdk 16
targetSdk 30

versionCode 115
versionName '11.5'
versionCode 116
versionName '11.6'

multiDexEnabled true

Expand All @@ -27,8 +27,8 @@ android {
aaptOptions { additionalParameters '--no-version-vectors' }

compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_9
sourceCompatibility JavaVersion.VERSION_1_9
}

buildTypes {
Expand Down Expand Up @@ -58,25 +58,31 @@ android {
exclude '**/notice.txt'
exclude '**/LGPL2.1'
}

dependenciesInfo {
includeInApk false
includeInBundle false
}
}

allprojects {
tasks.withType(JavaCompile) {
// options.compilerArgs << '-Xlint:deprecation' << '-Xlint:unchecked'
options.compilerArgs << '-Xlint:all'
options.compilerArgs
// << '-Xlint:deprecation'
// << '-Xlint:unchecked'
<< '-Xlint:all'
}
}

dependencies {
implementation platform('com.google.firebase:firebase-bom:26.2.0')
implementation('androidx.recyclerview:recyclerview:1.2.1@aar') { transitive true }
implementation('androidx.appcompat:appcompat:1.4.0-alpha03@aar') { transitive true }
implementation('com.google.android.material:material:1.5.0-alpha01@aar') { transitive true }

implementation('androidx.appcompat:appcompat:1.3.0-alpha02@aar') { transitive true }
implementation('androidx.recyclerview:recyclerview:1.2.0-beta01@aar') { transitive true }
implementation('com.google.android.material:material:1.3.0-beta01@aar') { transitive true }
implementation 'com.google.android.gms:play-services-ads:20.2.0'

implementation 'com.google.firebase:firebase-ads'
implementation platform('com.google.firebase:firebase-bom:28.2.1')
implementation 'com.google.firebase:firebase-core'
implementation 'com.google.firebase:firebase-crash'
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-crashlytics'
}
1 change: 0 additions & 1 deletion app/lint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<lint>
<issue id="IconLocation">
<ignore path="src/main/res/drawable/adm.png" />
<ignore path="src/main/res/drawable/dialog_back.9.png" />
<ignore path="src/main/res/drawable/insta.png" />
<ignore path="src/main/res/drawable/lw.png" />
<ignore path="src/main/res/drawable/ms.png" />
Expand Down
58 changes: 57 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
xmlns:tools="http://schemas.android.com/tools"
package="awais.backworddictionary">

<!-- for Text-to-Speech API on Android SDK 21+ or 22+ or 23+ probably -->
<queries>
<intent>
<action android:name="android.intent.action.TTS_SERVICE" />
</intent>
</queries>

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />

<application
android:name=".LinkedApp"
Expand All @@ -26,18 +34,47 @@
android:name="org.apache.http.legacy"
android:required="false" />

<!-- Shortcuts for Bubbles API -->
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />

<activity
android:name=".Main"
android:allowEmbedded="true"
android:configChanges="keyboardHidden|orientation|screenSize"
android:documentLaunchMode="intoExisting"
android:exported="true"
android:imeOptions="flagNoExtractUi|actionSearch"
android:label="@string/app_name"
android:launchMode="singleTop"
android:launchMode="singleInstance"
android:maxRecents="1"
android:resizeableActivity="true"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />

<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>

<activity
android:name=".helpers.TextProcessHelper"
android:autoRemoveFromRecents="true"
android:clearTaskOnLaunch="true"
android:excludeFromRecents="true"
android:exported="true"
android:finishOnTaskLaunch="true"
android:launchMode="singleTop"
android:maxRecents="1"
android:theme="@style/AppTheme.CompletelyTransparent">

<!-- Filter for Bubbles API -->
<intent-filter>
<category android:name="awais.linkedwords.bubbles.SEARCH" />
<action android:name="android.intent.action.VIEW" />
</intent-filter>

<!-- Search Intent Filter -->
<intent-filter>
Expand All @@ -64,8 +101,27 @@
<action android:name="android.intent.action.PROCESS_TEXT" />
<data android:mimeType="text/plain" />
</intent-filter>

<intent-filter>
<category android:name="android.intent.category.ALTERNATIVE" />

<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>

<activity
android:name=".TTSActivity"
android:autoRemoveFromRecents="true"
android:clearTaskOnLaunch="true"
android:excludeFromRecents="true"
android:exported="false"
android:imeOptions="flagNoExtractUi|actionDone"
android:inputType="numberSigned"
android:label="@string/tts_settings"
android:launchMode="singleTop"
android:maxRecents="1" />

<activity
android:name=".helpers.other.WebViewActivity"
android:parentActivityName=".Main">
Expand Down
Binary file added app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 486c19a

Please sign in to comment.