Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
927db19
Upgrade to Target SDK 33
moezbhatti Dec 12, 2022
96e14a8
Upgrade to Kotlin v1.7.20
moezbhatti Dec 12, 2022
89a6a27
Upgrade to Realm v10.13.0
moezbhatti Dec 12, 2022
322f34c
Update minSdkVersion for all modules to 33
moezbhatti Dec 12, 2022
2c332c0
Bump minSdkVersion to 23
moezbhatti Dec 12, 2022
634f04b
Explicitly define mutability for PendingIntents
moezbhatti Dec 12, 2022
3c8aad5
Add permissions for posting alarms and notifications
moezbhatti Dec 12, 2022
ce9ba1b
Export components
moezbhatti Dec 13, 2022
4f2d495
Remove obsolete checks for API 23
moezbhatti Dec 13, 2022
c4e07c2
Fix compileSdkVersion
moezbhatti Dec 13, 2022
cc819b3
Request notification permission on Android 13
moezbhatti Dec 13, 2022
2bb7016
Add manifest queries for call blocking packages
moezbhatti Dec 13, 2022
c258644
Fix crash when using .max function
moezbhatti Dec 13, 2022
ff0e21f
Update Play Services
moezbhatti Dec 13, 2022
a12629a
Update to Billing Library 5
moezbhatti Dec 14, 2022
844c1be
Don't acknowledge pending purchases
moezbhatti Dec 14, 2022
c1483d2
Prune unused code
moezbhatti Dec 14, 2022
c31d389
Ensure exact alarm permission before sending scheduled/delayed messages
moezbhatti Dec 14, 2022
53b2ac2
Migrate backup & restore feature to use SAF (#1900)
moezbhatti Jan 2, 2023
b5cac5d
Use MediaStore for saving attachments to device
moezbhatti Jan 2, 2023
1d5aed7
Update translations
moezbhatti Jan 2, 2023
3e5b18e
Update docker image
moezbhatti Jan 2, 2023
0be62f0
Fix crash when no document/tree selected
moezbhatti Jan 15, 2023
1b31c5f
Fix document picker for older devices
moezbhatti Jan 16, 2023
0ddc97c
Update translations
moezbhatti Jan 16, 2023
ee78fef
Increment to v3.10.0
moezbhatti Jan 16, 2023
7f05c3b
Update OkHttp
moezbhatti Jan 16, 2023
d302f30
Increment to v3.10.1
moezbhatti Jan 16, 2023
c2a9d01
update dependency
VinsonGuo Jan 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-29
- image: cimg/android:2022.12.1
steps:
- checkout
- restore_cache:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
test:
working_directory: ~/code
docker:
- image: circleci/android:api-29
- image: cimg/android:2022.12.1
steps:
- checkout
- restore_cache:
Expand Down
15 changes: 5 additions & 10 deletions android-smsmms/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,16 @@ android {
compileSdkVersion 25

defaultConfig {
minSdkVersion 21
minSdkVersion 23
targetSdkVersion 25
versionCode 1
versionName "1.0"
}

lintOptions {
abortOnError false
}

useLibrary 'org.apache.http.legacy'
lint {
abortOnError false
}
namespace 'com.klinker.android.send_message'
}

dependencies {
Expand All @@ -42,8 +41,4 @@ dependencies {
implementation 'com.squareup.okhttp:okhttp:2.5.0'
implementation 'com.squareup.okhttp:okhttp-urlconnection:2.5.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}

repositories {
mavenCentral()
}
4 changes: 1 addition & 3 deletions android-smsmms/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
package="com.klinker.android.send_message"
xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application>

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import android.provider.Telephony;
import android.text.TextUtils;

import com.android.mms.service_alt.exception.MmsHttpException;
import com.google.android.mms.MmsException;
import com.google.android.mms.pdu_alt.GenericPdu;
import com.google.android.mms.pdu_alt.PduHeaders;
Expand Down Expand Up @@ -75,44 +74,6 @@ public DownloadRequest(RequestManager manager, int subId, String locationUrl,
mContentUri = contentUri;
}

@Override
protected byte[] doHttp(Context context, MmsNetworkManager netMgr, ApnSettings apn)
throws MmsHttpException {
final MmsHttpClient mmsHttpClient = netMgr.getOrCreateHttpClient();
if (mmsHttpClient == null) {
Timber.e("MMS network is not ready!");
throw new MmsHttpException(0/*statusCode*/, "MMS network is not ready");
}
return mmsHttpClient.execute(
mLocationUrl,
null/*pud*/,
MmsHttpClient.METHOD_GET,
apn.isProxySet(),
apn.getProxyAddress(),
apn.getProxyPort(),
mMmsConfig);
}

@Override
protected PendingIntent getPendingIntent() {
return mDownloadedIntent;
}

@Override
protected int getQueueType() {
return 1;
}

@Override
protected Uri persistIfRequired(Context context, int result, byte[] response) {
if (!mRequestManager.getAutoPersistingPref()) {
notifyOfDownload(context);
return null;
}

return persist(context, response, mMmsConfig, mLocationUrl, mSubId, mCreator);
}

public static Uri persist(Context context, byte[] response, MmsConfig.Overridden mmsConfig,
String locationUrl, int subId, String creator) {
// Let any mms apps running as secondary user know that a new mms has been downloaded.
Expand Down Expand Up @@ -266,41 +227,6 @@ private static void notifyOfDownload(Context context) {
// }
}

/**
* Transfer the received response to the caller (for download requests write to content uri)
*
* @param fillIn the intent that will be returned to the caller
* @param response the pdu to transfer
*/
@Override
protected boolean transferResponse(Intent fillIn, final byte[] response) {
return mRequestManager.writePduToContentUri(mContentUri, response);
}

@Override
protected boolean prepareForHttpRequest() {
return true;
}

/**
* Try downloading via the carrier app.
*
* @param context The context
* @param carrierMessagingServicePackage The carrier messaging service handling the download
*/
public void tryDownloadingByCarrierApp(Context context, String carrierMessagingServicePackage) {
// final CarrierDownloadManager carrierDownloadManger = new CarrierDownloadManager();
// final CarrierDownloadCompleteCallback downloadCallback =
// new CarrierDownloadCompleteCallback(context, carrierDownloadManger);
// carrierDownloadManger.downloadMms(context, carrierMessagingServicePackage,
// downloadCallback);
}

@Override
protected void revokeUriPermission(Context context) {
context.revokeUriPermission(mContentUri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
}

private String getContentLocation(Context context, Uri uri)
throws MmsException {
Cursor cursor = android.database.sqlite.SqliteWrapper.query(context, context.getContentResolver(),
Expand Down
Loading