Skip to content

Commit

Permalink
disable gradle buildconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
fr3ts0n committed Jan 2, 2024
1 parent 208aa20 commit 297edab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class UsbCommService extends CommService
{
private static UsbSerialPort sPort = null;
private SerialInputOutputManager mSerialIoManager;
public static final String INTENT_ACTION_GRANT_USB = BuildConfig.APPLICATION_ID + ".GRANT_USB";
public static final String INTENT_ACTION_GRANT_USB = ".GRANT_USB";

public static final String PREF_KEY_BAUDRATE = "comm_baudrate";
public static final int DEFAULT_BAUDRATE = 38400;
Expand Down Expand Up @@ -174,7 +174,8 @@ public void start()

// Request runtime permission to access USB serial port
UsbDevice device = sPort.getDriver().getDevice();
PendingIntent usbPermissionIntent = PendingIntent.getBroadcast(mContext, 0, new Intent(INTENT_ACTION_GRANT_USB), 0);
String intentStr = mContext.getPackageName() + INTENT_ACTION_GRANT_USB;
PendingIntent usbPermissionIntent = PendingIntent.getBroadcast(mContext, 0, new Intent(intentStr), android.app.PendingIntent.FLAG_IMMUTABLE);
usbManager.requestPermission(device, usbPermissionIntent);
// Ensure access toUSB port is granted ...
if (!usbManager.hasPermission(device))
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
android.nonTransitiveRClass=true
org.gradle.unsafe.configuration-cache=true

0 comments on commit 297edab

Please sign in to comment.