Skip to content

Commit

Permalink
remove permission.POST_NOTIFICATIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Apr 20, 2024
1 parent 4fb744a commit 9a15720
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public class JavaFriendTester
@Rule
public GrantPermissionRule grantPermissionRule = GrantPermissionRule.grant(Manifest.permission.CAMERA,
Manifest.permission.RECORD_AUDIO,
Manifest.permission.POST_NOTIFICATIONS,
Manifest.permission.WRITE_EXTERNAL_STORAGE);
private static Activity currentActivity = null;

Expand Down Expand Up @@ -360,16 +359,6 @@ public void grant_permissions()
ArrayList<String> permissions = new ArrayList<>();
permissions.add(Manifest.permission.CAMERA);
permissions.add(Manifest.permission.RECORD_AUDIO);
try
{
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S)
{
permissions.add(Manifest.permission.POST_NOTIFICATIONS);
}
}
catch(Exception e)
{
}
permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);
for (int i = 0; i < permissions.size(); i++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public class StartExportImportTest
@Rule
public GrantPermissionRule grantPermissionRule = GrantPermissionRule.grant(Manifest.permission.CAMERA,
Manifest.permission.RECORD_AUDIO,
Manifest.permission.POST_NOTIFICATIONS,
Manifest.permission.WRITE_EXTERNAL_STORAGE);
private Activity currentActivity = null;

Expand Down Expand Up @@ -450,16 +449,6 @@ public void grant_permissions()
ArrayList<String> permissions = new ArrayList<>();
permissions.add(Manifest.permission.CAMERA);
permissions.add(Manifest.permission.RECORD_AUDIO);
try
{
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S)
{
permissions.add(Manifest.permission.POST_NOTIFICATIONS);
}
}
catch(Exception e)
{
}
permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);
for (int i = 0; i < permissions.size(); i++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.Manifest;
import android.app.Activity;
import android.app.UiAutomation;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
Expand Down Expand Up @@ -71,10 +72,11 @@ public class StartMainActivityWrapperTest
StartMainActivityWrapper.class);
//
@Rule
public GrantPermissionRule grantPermissionRule = GrantPermissionRule.grant(Manifest.permission.CAMERA,
Manifest.permission.RECORD_AUDIO,
Manifest.permission.POST_NOTIFICATIONS,
Manifest.permission.WRITE_EXTERNAL_STORAGE);
public GrantPermissionRule grantPermissionRule =
GrantPermissionRule.grant(Manifest.permission.CAMERA,
Manifest.permission.RECORD_AUDIO,
Manifest.permission.WRITE_EXTERNAL_STORAGE
);
private Activity currentActivity = null;

@Test
Expand Down Expand Up @@ -441,16 +443,6 @@ public void grant_permissions()
ArrayList<String> permissions = new ArrayList<>();
permissions.add(Manifest.permission.CAMERA);
permissions.add(Manifest.permission.RECORD_AUDIO);
try
{
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S)
{
permissions.add(Manifest.permission.POST_NOTIFICATIONS);
}
}
catch(Exception e)
{
}
permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);
for (int i = 0; i < permissions.size(); i++)
{
Expand Down

0 comments on commit 9a15720

Please sign in to comment.