Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27252] Hyperloop: Implement instabug sdk in appcelerator app for android and IOS

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-10-30T18:11:50.000+0000
Affected Version/sn/a
Fix Version/sRelease 8.3.0
Componentsn/a
Labelsn/a
ReporterRakhi Mitro
AssigneeYordan Banev
Created2019-07-18T04:59:38.000+0000
Updated2019-10-30T18:11:50.000+0000

Description

The customer is trying to implement instabug sdk in appcelerator app for android and IOS both. They are using real device and Xcode version 10.2.1. *iOS:* They followed all the steps from [here](https://instabug.com/platforms/ios) . Inclusion of pod file didn't work correctly. They have manually downloaded the framework and placed it under the platform/ios directory and that trick worked.
var instabug = require("Instabug/Instabug"); 
This statement also works as statement provided below also works.

instabug.startWithTokenInvocationEvents("f7f4797d8e2a5893f2d4cf992883867a");
Only thing they are not able to do is they are suppose to pass IBGInvocationEventShake. [Instabug startWithToken:@"YOUR-TOKEN-HERE" invocationEvents: IBGInvocationEventShake | IBGInvocationEventScreenshot]; Note:
We suggested them to use:
const Instabug = require('Instabug/Instabug');
Instabug.startWithTokenInvocationEvents('YOUR_TOKEN', Instabug.IBGInvocationEventShake | Instabug.IBGInvocationEventScreenshot)

It doesn't work for them. It initializes but still not initializing on vibrating mode that means to them parameters are not passed.
*Android:* While adding instabug on android, getting details about android sdk integration based in below [url](https://docs.instabug.com/docs/android-integration#section-maven). They are using SDK - 8.0.2 hyperloop - 4.0.2 android API 26. They are facing below issues: 1. *build.gradle* is not working as mentioned in https://wiki.appcelerator.org/display/guides2/Android+Hyperloop+Programming+Guide. 2. Downloaded all the jars mentioned in gradle manually. Then getting below error. Attaching all the jars that they have included just for references. 3. When they researched this is related to android snackbar but since they are not able to use gradle they can't add gradle script for snackbar as well.
[INFO] : Generating i18n files 
[DEBUG] : Writing en strings => /Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res/values/strings.xml 
[WARN] : Overwriting XML node close in file /Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res/values/values.xml 
[INFO] : Generating /Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res/values/theme.xml 
[INFO] : Running AAPT: /Users/v412636/Library/Android/sdk/build-tools/28.0.3/aapt "package" "-f" "-m" "-J" "/Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/gen" "-M" "/Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/AndroidManifest.xml" "-A" "/Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/bin/assets" "-S" "/Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res" "-I" "/Users/v412636/Library/Android/sdk/platforms/android-28/android.jar" "-F" "/Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/bin/app.ap_" "--ignore-assets" "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~" "--output-text-symbols" "/Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/intermediates/bundles" "--no-version-vectors" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.coreui:android.support.coreutils:android.support.exifinterface:android.support.fragment:android.support.graphics.drawable.animated:android.support.graphics.drawable:android.support.mediacompat:android.support.transition:android.support.v4:android.support.v7.appcompat:android.support.v7.recyclerview:android.support.compat:android.support.design:android.support.v7.cardview"
[ERROR] Application Installer abnormal process termination. Process exit value was 1 
[ERROR] : Failed to package application: 
[ERROR] : 
[ERROR] : /Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res/values-no/values-no.xml:96: warning: string 'ib_str_report_data' marked untranslatable but exists in locale 'no' 
[ERROR] : 
[ERROR] : /Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res/values-no/values-no.xml:129: warning: string 'instabug_str_empty' marked untranslatable but exists in locale 'no' 
[ERROR] : 
[ERROR] : /Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res/values-no/values-no.xml:142: warning: string 'instabug_str_next' marked untranslatable but exists in locale 'no' 
[ERROR] : 
[ERROR] : /Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res/values-no/values-no.xml:147: warning: string 'instabug_str_plus' marked untranslatable but exists in locale 'no' 
[ERROR] : 
[ERROR] : /Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res/values-no/values-no.xml:153: warning: string 'instabug_str_send' marked untranslatable but exists in locale 'no' 
[ERROR] : 
[ERROR] : /Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res/values/values.xml:1576: error: Error: No resource found that matches the given name: attr 'borderWidth'. 
[ERROR] : 
[ERROR] : /Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res/values/values.xml:1572: error: Error: No resource found that matches the given name: attr 'fabSize'. 
[ERROR] : 
[ERROR] : /Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res/values/values.xml:1574: error: Error: No resource found that matches the given name: attr 'pressedTranslationZ'. 
[ERROR] : 
[ERROR] : /Users/v412636/Documents/Main Folder/Appc-Bitbucket/Label_Audit/build/android/res/values/values.xml:1575: error: Error: No resource found that matches the given name: attr 'rippleColor'. 

Attachments

FileDateSize
12-attached-files-20190717215836.zip2019-07-18T05:00:29.000+00002322786
instabug-all.zip2019-07-30T14:22:33.000+00002845698

Comments

  1. Yordan Banev 2019-07-30

    PR: https://github.com/appcelerator/titanium_mobile/pull/11094
  2. Satyam Sekhri 2019-10-29

    FR Passed. Waiting on Jenkins build.
  3. Christopher Williams 2019-10-30

    merged to master
  4. Satyam Sekhri 2019-10-30

    Verified on: Mac OS: 10.14.5 SDK: 8.3.0.v20191030085531 Appc CLI: 7.1.1 JDK: 1.8.0_162 Node: 10.5.0 Studio: 5.1.4.201909061933

JSON Source