vxrn 2.7.3 → 2.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1641,6 +1641,14 @@ ${stamps.join("\n")}`);
1641
1641
  }
1642
1642
  rendered = rendered.replace(anchor, `${anchor}
1643
1643
  <uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />`);
1644
+ }
1645
+ if (platform === "android" && relativePath === "app/src/main/AndroidManifest.xml" && app.brightness === true) {
1646
+ const anchor = "<uses-permission android:name=\"android.permission.INTERNET\" />";
1647
+ if (!rendered.includes(anchor)) {
1648
+ throw new Error("[vxrn] cannot stamp the brightness permission: expected the INTERNET permission in app/src/main/AndroidManifest.xml");
1649
+ }
1650
+ rendered = rendered.replace(anchor, `${anchor}
1651
+ <uses-permission android:name="android.permission.WRITE_SETTINGS" />`);
1644
1652
  }
1645
1653
  if (platform === "android" && relativePath === "app/src/main/AndroidManifest.xml" && app.notifications !== void 0) {
1646
1654
  const anchor = "<uses-permission android:name=\"android.permission.INTERNET\" />";