Code Monkey home page Code Monkey logo

dexter's People

Contributors

naiquevin avatar sumeet-helpshift avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dexter's Issues

The script unpacks all available aar's, then does nothing

Hi,
it seems that the script doesn't work as specified for me. After doing the line
"python dexter -p "
It doesn't create helpshift.aar file. It does though unpack EVERY aar file I had in the project and leaves them as such in assets/plugins/android.
To be sure - I've used python 2.7.15, and I'm doing it on Windows.

PluginToAar - WindowsError 2

Running
C:\Python27>python PluginToAAR.py -p C:\Users\Venom\projects\playunity\Empty2018.1.9f1
produces WindowsError2

Environment:
Windows 10
Python 2.7.9 https://www.python.org/ftp/python/2.7.9/python-2.7.9.amd64.msi
Unity 2018.1.9f1

Steps to reproduce:

Create empty unity project

Then follow instructions: https://developers.helpshift.com/unity/getting-started-android/
Details:

  1. import unitypackage (Helpshift SDK-only dex unity package v. 4.1.0)

  2. change ${applicationId} with в Plugins/Android/helpshift/AndroidManifest.xml

  3. run build - will get error
    CommandInvokationFailure: Gradle build failed.
    C:\Program Files\Java\jdk1.8.0_181\bin\java.exe -classpath "C:\Users\Venom\projects\supercity.sdk\Unity-2018.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"

stderr[
warning: string 'status_bar_notification_info_overflow' has no default translation.

C:\Users\Venom\projects\playunity\Empty2018.1.9f1\Temp\gradleOut\design-26.0.2\build\intermediates\bundles\default\res\values\values.xml:238: AAPT: Error retrieving parent for item: No resource found that matches the given name 'Animation.AppCompat.Dialog'.

C:\Users\Venom\projects\playunity\Empty2018.1.9f1\Temp\gradleOut\design-26.0.2\build\intermediates\bundles\default\res\values\values.xml:256: AAPT: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Display1'.

...

  1. Perform workaround - use that script PluginToAAR.py (https://developers.helpshift.com/unity/troubleshooting-android/#fix-inbuilt-gradle-build)

a. remove dirs
b. put aars (downloaded from e.g. https://mvnrepository.com/artifact/com.android.support/support-vector-drawable/26.0.2)
c. download python 2.7.9 (it's bundled with pip)
d. run pip install requests==2.7.0

d. run:
C:\Python27>python PluginToAAR.py -p C:\Users\Venom\projects\playunity\Empty2018.1.9f1
INFO:root:Checking for updates...
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): raw.githubusercontent.com
INFO:root:Creating backup of "C:\Users\Venom\projects\playunity\Empty2018.1.9f1\Assets\Plugins\Android\helpshift" at C:\Users\Venom\projects\playunity\Empty2018.1.9f1\helpshift_bkp
Traceback (most recent call last):
File "PluginToAAR.py", line 109, in
sys.exit(main(args))
File "PluginToAAR.py", line 92, in main
aar_path = generate_aar(helpshift_aar_unzipped)
File "PluginToAAR.py", line 41, in generate_aar
call(["jar", "cvf", "Helpshift.aar","."])
File "C:\Python27\lib\subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 710, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.