/plugins/android/jps-plugin/src/org/jetbrains/jps/android/model/impl/JpsAndroidModuleProperties.java

https://bitbucket.org/nbargnesi/idea · Java · 80 lines · 44 code · 18 blank · 18 comment · 0 complexity · 136f5b1db1e61f1262ad30ed5763a74e MD5 · raw file

  1. /*
  2. * Copyright 2000-2012 JetBrains s.r.o.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.jetbrains.jps.android.model.impl;
  17. import com.intellij.util.xmlb.annotations.AbstractCollection;
  18. import com.intellij.util.xmlb.annotations.Attribute;
  19. import com.intellij.util.xmlb.annotations.Tag;
  20. import org.jetbrains.android.util.AndroidCommonUtils;
  21. import java.util.ArrayList;
  22. import java.util.List;
  23. /**
  24. * @author nik
  25. */
  26. public class JpsAndroidModuleProperties {
  27. public String GEN_FOLDER_RELATIVE_PATH_APT;
  28. public String GEN_FOLDER_RELATIVE_PATH_AIDL;
  29. public String MANIFEST_FILE_RELATIVE_PATH;
  30. public String RES_FOLDER_RELATIVE_PATH;
  31. public String ASSETS_FOLDER_RELATIVE_PATH;
  32. public String LIBS_FOLDER_RELATIVE_PATH;
  33. public boolean USE_CUSTOM_APK_RESOURCE_FOLDER;
  34. public String CUSTOM_APK_RESOURCE_FOLDER = "";
  35. public boolean USE_CUSTOM_COMPILER_MANIFEST;
  36. public String CUSTOM_COMPILER_MANIFEST = "";
  37. public String APK_PATH = "";
  38. public boolean LIBRARY_PROJECT;
  39. public boolean RUN_PROCESS_RESOURCES_MAVEN_TASK = true;
  40. public boolean GENERATE_UNSIGNED_APK;
  41. public String CUSTOM_DEBUG_KEYSTORE_PATH = "";
  42. public boolean PACK_TEST_CODE;
  43. public boolean RUN_PROGUARD;
  44. public String PROGUARD_CFG_PATH;
  45. @Tag(AndroidCommonUtils.INCLUDE_SYSTEM_PROGUARD_FILE_ELEMENT_NAME)
  46. public boolean myIncludeSystemProguardCfgPath = true;
  47. @Tag("resOverlayFolders")
  48. @AbstractCollection(surroundWithTag = false, elementTag = "path", elementValueAttribute = "")
  49. public List<String> RES_OVERLAY_FOLDERS = new ArrayList<String>();
  50. @Tag(AndroidCommonUtils.ADDITIONAL_NATIVE_LIBS_ELEMENT)
  51. @AbstractCollection(surroundWithTag = false)
  52. public List<AndroidNativeLibData> myNativeLibs = new ArrayList<AndroidNativeLibData>();
  53. @Tag(AndroidCommonUtils.ITEM_ELEMENT)
  54. public static class AndroidNativeLibData {
  55. @Attribute(AndroidCommonUtils.ARCHITECTURE_ATTRIBUTE)
  56. public String myArchitecture;
  57. @Attribute(AndroidCommonUtils.URL_ATTRIBUTE)
  58. public String myUrl;
  59. @Attribute(AndroidCommonUtils.TARGET_FILE_NAME_ATTRIBUTE)
  60. public String myTargetFileName;
  61. }
  62. }