Skip to content

Commit 3d28a24

Browse files
committed
🐛 fix spec optional not handled
2 parents 7976c82 + 2de2301 commit 3d28a24

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/android/before_plugin_install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const writeIbgBuildGradle = (contents) => {
1919
const getAndroidVersion = () => {
2020
const target = path.join('config.xml');
2121
let file = fs.readFileSync(target, 'utf-8');
22-
const androidEngine = file.match(/engine name="android" spec="\^[1-9]+.[0-9]+.[0-9]+"/g);
22+
const androidEngine = file.match(/engine name="android" spec="\^?[1-9]+.[0-9]+.[0-9]+"/g);
2323
if (androidEngine) {
2424
const version = androidEngine[0].match(/[1-9]+.[0-9]+.[0-9]+/g);
2525
if (version) {

src/android/MyApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public void onCreate()
1919
{
2020
new Instabug.Builder(
2121
this,
22-
"6e9964eddd1a350d6dabf176c6328dac",
23-
InstabugInvocationEvent.FLOATING_BUTTON
22+
"APP_TOKEN",
23+
InstabugInvocationEvent.SHAKE
2424
).build();
2525
BugReporting.setFloatingButtonEdge(InstabugFloatingButtonEdge.LEFT);
2626
BugReporting.setFloatingButtonOffset(250);

0 commit comments

Comments
 (0)