apk_utils.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # -*- coding:utf-8 -*-
  2. JAVA_HOME = "/usr/java/jdk-12.0.1"
  3. JAVA_BIN = "%s/bin"%JAVA_HOME
  4. SDK_HOME = "/opt/mixsdk/tool/Android/Sdk/build-tools"
  5. SDK_BUILD_TOOL = "%s/build-tools/android-5.1"%SDK_HOME
  6. SDK_TOOLS = "%s/28.0.3"%SDK_HOME
  7. TOOLS_JAR_HOME = "/opt/mixsdk/tool/tool_jar"
  8. COMPILE_TOOLS_HOME = "/opt/mixsdk/tool/apktools"
  9. CUT_SDK_ROOT_HOME = "/opt/mixsdk/channelsdk"
  10. CUT_AD_SDK_ROOT_HOME = "/opt/mixsdk/adsdk"
  11. OUT_PUT_DIR = "/opt/new_packing_tool/output"
  12. SP_OUT_PUT_DIR = "/opt/new_packing_tool/sp_output"
  13. SIGNER_V2_JAR = "%s/apksigner-25.0.0.jar"%TOOLS_JAR_HOME
  14. def getJavaPath():
  15. return JAVA_HOME
  16. def getJavaBinPath():
  17. return JAVA_BIN
  18. def getSdkBuildToolPath():
  19. return SDK_BUILD_TOOL
  20. def getSdkToolsPath():
  21. return SDK_TOOLS
  22. def getToolsJarHome():
  23. return TOOLS_JAR_HOME
  24. def getComplieToolsHome():
  25. return COMPILE_TOOLS_HOME
  26. def getCutSdkRootHome():
  27. return CUT_SDK_ROOT_HOME
  28. def getCutAdSdkRootHome():
  29. return CUT_AD_SDK_ROOT_HOME
  30. def getOutPutDir():
  31. return OUT_PUT_DIR
  32. def getSpOutPutDir():
  33. return SP_OUT_PUT_DIR
  34. def getSignV2Jar():
  35. return SIGNER_V2_JAR