android_libraries.json 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "APKExpansionLibrary": {
  3. "srcDir": ["${ANDROID_SDK_HOME}/extras/google/play_apk_expansion/downloader_library",
  4. "${ANDROID_SDK_HOME}/extras/google/market_apk_expansion/downloader_library"],
  5. "dependencies": [
  6. "LicenseLibrary"
  7. ],
  8. "patches": [{
  9. "path": "src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java",
  10. "changes": [
  11. {
  12. "line": 134,
  13. "old": ["mCurrentNotification.tickerText = mLabel + \": \" + mCurrentText;",
  14. "mCurrentNotification.icon = iconResource;",
  15. "mCurrentNotification.setLatestEventInfo(mContext, mCurrentTitle, mCurrentText,",
  16. " mContentIntent);"],
  17. "new": ["mCurrentNotification = createNotification(iconResource);"]
  18. },
  19. {
  20. "line": 156,
  21. "old": ["mNotification.tickerText = mCurrentTitle;",
  22. "mNotification.icon = android.R.drawable.stat_sys_download;",
  23. "mNotification.setLatestEventInfo(mContext, mLabel, mCurrentText, mContentIntent);"],
  24. "new": ["mNotification = createNotification(android.R.drawable.stat_sys_download);"]
  25. },
  26. {
  27. "line": 229,
  28. "old" : [""],
  29. "new": ["",
  30. " private Notification createNotification(int iconRes) {",
  31. " return new Notification.Builder(mContext)",
  32. " .setContentText(mCurrentText)",
  33. " .setContentTitle(mCurrentTitle)",
  34. " .setContentIntent(mContentIntent)",
  35. " .setTicker(mLabel + \": \" + mCurrentText)",
  36. " .setSmallIcon(iconRes)",
  37. " .build();",
  38. " }"]
  39. }]
  40. },
  41. {
  42. "path": "AndroidManifest.xml",
  43. "changes": [
  44. {
  45. "line": 6,
  46. "old": ["<uses-sdk android:minSdkVersion=\"4\" android:targetSdkVersion=\"15\"/>"],
  47. "new": [""]
  48. }]
  49. }],
  50. "launcherDependency": "true"
  51. },
  52. "LicenseLibrary": {
  53. "srcDir": ["${ANDROID_SDK_HOME}/extras/google/play_licensing/library",
  54. "${ANDROID_SDK_HOME}/extras/google/market_licensing/library"],
  55. "buildDependencies": [
  56. "org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2"
  57. ],
  58. "libs" : [{
  59. "path" : "${ANDROID_SDK_HOME}/platforms/${ANDROID_SDK_VERSION}/optional/org.apache.http.legacy.jar",
  60. "required" : false
  61. }],
  62. "patches": [{
  63. "path": "src/com/google/android/vending/licensing/LicenseChecker.java",
  64. "changes": [{
  65. "line": 152,
  66. "old": ["Base64.decode(\"Y29tLmFuZHJvaWQudmVuZGluZy5saWNlbnNpbmcuSUxpY2Vuc2luZ1NlcnZpY2U=\"))),"],
  67. "new": ["Base64.decode(\"Y29tLmFuZHJvaWQudmVuZGluZy5saWNlbnNpbmcuSUxpY2Vuc2luZ1NlcnZpY2U=\"))).setPackage(\"com.android.vending\"),"]
  68. }]
  69. },
  70. {
  71. "path": "AndroidManifest.xml",
  72. "changes": [
  73. {
  74. "line": 19,
  75. "old": ["<!-- Devices >= 3 have version of Android Market that supports licensing. -->",
  76. "<uses-sdk android:minSdkVersion=\"3\" android:targetSdkVersion=\"15\" />"],
  77. "new": [""]
  78. }]
  79. }]
  80. }
  81. }