Skip to content

Commit

Permalink
Update translations; add hidden analysis; bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
VishalNehra committed May 11, 2023
1 parent 12eb93c commit 493ca9a
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 23 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ android {
minSdk 21
targetSdk 31

Integer sudoVersionCode = 23
String versionNameText = "1.83"
Integer sudoVersionCode = 25
String versionNameText = "1.85"

String[] abiFilterList = property("abiFilters").toString().split(';')
Integer minorVersion = 0
Expand Down Expand Up @@ -190,7 +190,7 @@ android {
// track.set("internal")
track.set("production")
userFraction.set(1.0d)
updatePriority.set(3)
updatePriority.set(4)
releaseStatus.set(com.github.triplet.gradle.androidpublisher.ReleaseStatus.COMPLETED)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1114,16 +1114,19 @@ class FilesViewModel(val applicationContext: Application) :

fun checkInternetConnection(timeoutMs: Int): LiveData<Boolean> {
return liveData(context = viewModelScope.coroutineContext + Dispatchers.Default) {
try {
val socket = Socket()
val socketAddress = InetSocketAddress("8.8.8.8", 53)

socket.connect(socketAddress, timeoutMs)
socket.close()
emit(true)
} catch (ex: IOException) {
log.info("failed to ping for connection", ex)
if (BuildConfig.IS_VERSION_FDROID) {
emit(applicationContext.isNetworkAvailable())
} else {
val socket = Socket()
try {
val socketAddress = InetSocketAddress("208.67.222.222", 53)
socket.connect(socketAddress, timeoutMs)
socket.close()
emit(true)
} catch (ex: IOException) {
log.info("failed to ping for connection", ex)
emit(applicationContext.isNetworkAvailable())
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/play/release-notes/en-US/production.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Changelog:
- Add analysis for similar images
- Add analysis for similar images and hidden files
- Add support for .cbz , .fb2 and .mobi
- Add support to search in pdf
- Improve performance
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_analyse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
android:id="@+id/hidden_files_preview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:analysisTitle="Hidden Files"
app:analysisTitle="@string/hidden_files"
app:showPreview="true"
android:layout_marginTop="@dimen/material_generic"
/>
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -946,4 +946,6 @@
<string name="similar_images">Similar Images</string>
<!-- similar images summary in analysis fragment -->
<string name="similar_images_hint">Images that have similar colors</string>
<!-- hidden files in analysis fragment -->
<string name="hidden_files">Hidden Files</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,16 @@ class Billing(val context: Context, private var uniqueId: String) :
)
}
}
} else {
// greater than 1 for BillingClient.SkuType.INAPP items.
log.info("consuming in app purchase")
val consumeParams =
ConsumeParams.newBuilder().setPurchaseToken(
latestPurchase
.purchaseToken
).build()
billingClient!!.consumeAsync(consumeParams, purchaseConsumerListener)
}

// could be greater than 1 for BillingClient.SkuType.INAPP items.
log.info("consuming in app purchase")
val consumeParams =
ConsumeParams.newBuilder().setPurchaseToken(
latestPurchase
.purchaseToken
).build()
billingClient!!.consumeAsync(consumeParams, purchaseConsumerListener)
}
} else {
log.warn(
Expand Down

0 comments on commit 493ca9a

Please sign in to comment.