Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
* fixed "my apps" crash issue when no VIEW intent app installed.
* updated libraries and compiler target level.
  • Loading branch information
AwaisKing committed Jun 12, 2023
1 parent 8914aa8 commit e2a2124
Show file tree
Hide file tree
Showing 16 changed files with 43 additions and 46 deletions.
9 changes: 0 additions & 9 deletions .idea/codeStyles/Project.xml

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

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

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

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

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

1 change: 1 addition & 0 deletions .idea/modules.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/runConfigurations/app.xml

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

21 changes: 10 additions & 11 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
minSdk 19
targetSdk 33

versionCode 125
versionName '12.5'
versionCode 126
versionName '12.6'

multiDexEnabled true

Expand All @@ -23,13 +23,12 @@ android {
}
}

aaptOptions { additionalParameters.add('--no-version-vectors') }
buildFeatures {
buildConfig true
viewBinding true
}

//aaptOptions { additionalParameters '--no-version-vectors' }

compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down Expand Up @@ -80,20 +79,20 @@ dependencies {
//implementation('androidx.work:work-runtime:2.7.1@aar') { transitive true }
implementation('androidx.recyclerview:recyclerview:1.3.0@aar') { transitive true }
implementation('androidx.swiperefreshlayout:swiperefreshlayout:1.1.0@aar') { transitive true }
implementation('com.google.android.material:material:1.8.0@aar') {
implementation('com.google.android.material:material:1.9.0@aar') {
transitive true
//exclude group: 'androidx.work', module: 'work-runtime'
}

implementation('com.startapp:inapp-sdk:4.10.8@aar') { transitive true }
implementation('com.applovin:applovin-sdk:11.9.0@aar') { transitive true }
implementation('com.startapp:applovin-mediation:1.1.3@aar') { transitive true }
implementation('com.startapp:inapp-sdk:4.11.0@aar') { transitive true }
implementation('com.applovin:applovin-sdk:11.10.1@aar') { transitive true }
implementation('com.startapp:applovin-mediation:1.1.4@aar') { transitive true }
implementation('com.applovin.mediation:adcolony-adapter:4.8.0.4@aar') { transitive true }
implementation('com.applovin.mediation:facebook-adapter:6.13.7.0@aar') { transitive true }
implementation('com.applovin.mediation:facebook-adapter:6.14.0.0@aar') { transitive true }

implementation('com.applovin.mediation:chartboost-adapter:9.2.1.0@aar') { transitive true }
implementation('com.applovin.mediation:chartboost-adapter:9.3.1.0@aar') { transitive true }
implementation('com.google.android.gms:play-services-base:18.2.0@aar') { transitive true }

implementation('com.applovin.mediation:inmobi-adapter:10.1.3.4@aar') { transitive true }
implementation('com.applovin.mediation:inmobi-adapter:10.1.4.1@aar') { transitive true }
implementation('com.squareup.picasso:picasso:2.71828@aar') { transitive true }
}
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@ protected FilterResults performFiltering(final CharSequence charSequence) {
return results;
}

final String searchVal = String.valueOf(charSequence);
final ArrayList<WordItem> filteredList = new ArrayList<>(wordList.size() >>> 1);
for (final WordItem mWord : wordList) {
final String word = mWord.getWord().toLowerCase(Utils.defaultLocale);
final String[][] defs = mWord.getDefs();
final String searchVal = String.valueOf(charSequence);

final boolean wordBool = contains ? word.contains(searchVal) : word.startsWith(searchVal);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,30 @@ public final class MyApps {

static {
final Icons[] currList = new Icons[]{
new Icons("awais.addme", "AddMe", R.drawable.adm),
new Icons("awais.quodb", "QuoDB", R.drawable.qdb),
new Icons("awais.media.scanner", "mediaScanner", R.drawable.ms),
new Icons("awais.skyrimconsole", "Skyrim Cheats", R.drawable.tesv),
new Icons("awais.reversify", "Reversify", R.drawable.rev),
new Icons("awais.reversify.lite", "Reversify Lite", R.drawable.revl),
new Icons("awais.backworddictionary", "Linked Words", R.drawable.lw),
new Icons("awais.reversify.lite", "Reversify Lite", R.drawable.revl),
new Icons("awais.skyrimconsole", "Skyrim Cheats", R.drawable.tesv),
new Icons("awais.addme", "AddMe", R.drawable.adm),
new Icons("awais.memeheaven", "Meme Heaven", R.drawable.mmhv),
new Icons("awais.hostsmanager", "Hosts Manager Pro", R.drawable.hmp),
new Icons("awais.hostsmanager.lite", "Hosts Manager Lite", R.drawable.hml),
new Icons("awais.quodb", "QuoDB", R.drawable.qdb),
new Icons("awais.game.tictactoe", "Tic Tac Toe", R.drawable.ttt),
new Icons("awais.game.jigsaw", "JigSaw", R.drawable.jsw),
};
iconsList = new Icons[currList.length - 1];
int i = 0;
for (final Icons value : currList) if (!value.pkg.equals(BuildConfig.APPLICATION_ID)) iconsList[i++] = value;
for (final Icons value : currList) if (!BuildConfig.APPLICATION_ID.equals(value.pkg)) iconsList[i++] = value;
}

public static void openAppStore(@NonNull final Context context, final int position) {
try {
context.startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse("https://play.google.com/store/apps/details?id=" + MyApps.iconsList[position].pkg)));
final int flags = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
? Intent.FLAG_ACTIVITY_RETAIN_IN_RECENTS | Intent.FLAG_ACTIVITY_NEW_DOCUMENT : 0;
context.getApplicationContext().startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id="
+ MyApps.iconsList[position].pkg)).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK |flags ));
} catch (final Exception e) {
// activity not found? bruh
}
Expand Down Expand Up @@ -132,16 +137,13 @@ public View getView(final int position, View convertView, final ViewGroup parent
linearLayout.setOrientation(LinearLayout.VERTICAL);
final AppCompatImageView imageView = new AppCompatImageView(context);
final MaterialTextView textView = new MaterialTextView(context);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1)
textView.setTextAlignment(View.TEXT_ALIGNMENT_GRAVITY);
textView.setTextAlignment(View.TEXT_ALIGNMENT_GRAVITY);
textView.setGravity(Gravity.CENTER_HORIZONTAL);
imageView.setAdjustViewBounds(true);
linearLayout.addView(imageView, LinearLayout.LayoutParams.MATCH_PARENT, size);
linearLayout.addView(textView);
final int padding = size / 4;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1)
linearLayout.setPaddingRelative(padding, padding, padding, padding);
else linearLayout.setPadding(padding, padding, padding, padding);
linearLayout.setPaddingRelative(padding, padding, padding, padding);
convertView = linearLayout;
convertView.setTag(holder = new ViewHolder(textView, imageView));
} else
Expand Down
Binary file added app/src/main/res/drawable/hml.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/hmp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/mmhv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ buildscript {
mavenCentral()
gradlePluginPortal()
maven { url 'https://jitpack.io' }
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'https://repo1.maven.org/maven2/' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.java.net/content/groups/public/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://repository.apache.org/content/repositories/snapshots/' }
Expand Down
7 changes: 3 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ android.nonFinalResIds = false
android.useAndroidX = true
android.enableJetifier = true
##################
#org.gradle.vfs.watch = true
org.gradle.unsafe.configuration-cache = true
org.gradle.configureondemand = true
org.gradle.parallel = true
org.gradle.caching = true
org.gradle.daemon = false
org.gradle.jvmargs = -Xms512m -Xmx2048m -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=1024m -XX:+UseParallelGC -Dfile.encoding=UTF-8
#org.gradle.daemon = true
#org.gradle.unsafe.configuration-cache = true
org.gradle.jvmargs = -Xms512m -Xmx2048m -XX:MaxPermSize\=1024m -XX:ReservedCodeCacheSize\=1024m -XX:+UseParallelGC -Dfile.encoding\=UTF-8
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Jan 10 23:47:11 PKT 2023
#Wed Jun 07 11:05:06 PKT 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
7 changes: 5 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
//flatDir { dirs 'libs' }
// flatDir { dirs 'libs' }
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://maven.google.com/' }
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'https://repo1.maven.org/maven2/' }
// maven { url 'https://maven.java.net/content/groups/public/' }
maven { url 'https://maven.java.net/content/groups/public/' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://cboost.jfrog.io/artifactory/chartboost-ads/' }
}
}

Expand Down

0 comments on commit e2a2124

Please sign in to comment.