Update to Android API 34 (Android 14)
This commit is contained in:
parent
f18a03c6cb
commit
7d2907e86a
|
@ -40,8 +40,8 @@ if (build_param != "prod") {
|
|||
|
||||
android {
|
||||
namespace 'es.ugr.swad.swadroid'
|
||||
compileSdkVersion 33
|
||||
buildToolsVersion "33.0.2"
|
||||
compileSdkVersion 34
|
||||
buildToolsVersion "34.0.0"
|
||||
|
||||
lint {
|
||||
abortOnError false
|
||||
|
@ -58,7 +58,7 @@ android {
|
|||
versionCode androidGitVersion.code()
|
||||
|
||||
minSdkVersion 24
|
||||
targetSdkVersion 33
|
||||
targetSdkVersion 34
|
||||
|
||||
testApplicationId "es.ugr.swad.swadroid.test"
|
||||
testInstrumentationRunner "android.test.InstrumentationTestRunner"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
|
||||
|
@ -358,7 +359,8 @@
|
|||
</service>
|
||||
<service
|
||||
android:name="es.ugr.swad.swadroid.modules.notifications.NotificationsSyncAdapterService"
|
||||
android:exported="false" >
|
||||
android:exported="false"
|
||||
android:foregroundServiceType="dataSync" >
|
||||
<intent-filter>
|
||||
<action android:name="android.content.SyncAdapter" />
|
||||
</intent-filter>
|
||||
|
|
|
@ -39,6 +39,7 @@ import android.widget.LinearLayout;
|
|||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
|
||||
|
||||
import org.ksoap2.serialization.SoapObject;
|
||||
|
@ -279,8 +280,8 @@ public class Notifications extends Module implements
|
|||
mBirthdayLayout = (LinearLayout) findViewById(R.id.notify_layout);
|
||||
mBirthdayTextView = findViewById(R.id.notifyTextView);
|
||||
|
||||
groupItem = new ArrayList<>();
|
||||
childItem = new ArrayList<>();
|
||||
groupItem = new ArrayList<>();
|
||||
childItem = new ArrayList<>();
|
||||
|
||||
//Init ExpandableListView
|
||||
initSwipeOptions();
|
||||
|
@ -340,7 +341,7 @@ public class Notifications extends Module implements
|
|||
intentFilter.addAction(NotificationsSyncAdapterService.START_SYNC);
|
||||
intentFilter.addAction(NotificationsSyncAdapterService.STOP_SYNC);
|
||||
intentFilter.addAction(Intent.CATEGORY_DEFAULT);
|
||||
registerReceiver(receiver, intentFilter);
|
||||
ContextCompat.registerReceiver(this, receiver, intentFilter, ContextCompat.RECEIVER_NOT_EXPORTED);
|
||||
|
||||
Log.i(TAG, "Registered receiver for automatic synchronization");
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ public final class PeriodicSyncReceiver extends BroadcastReceiver {
|
|||
public static PendingIntent createPendingIntent(Context context, String authority, Bundle extras) {
|
||||
int requestCode = 0;
|
||||
Intent intent = createIntent(context, authority);
|
||||
int flags = 0;
|
||||
int flags = PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE;
|
||||
return PendingIntent.getBroadcast(context, requestCode, intent, flags);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user