WXAppConfiguration.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. #import <Foundation/Foundation.h>
  20. @interface WXAppConfiguration : NSObject
  21. /**
  22. * @abstract Group or organization of your app, default value is nil.
  23. */
  24. + (NSString *)appGroup;
  25. + (void)setAppGroup:(NSString *) appGroup;
  26. /**
  27. * @abstract Name of your app, default is value for CFBundleDisplayName in main bundle.
  28. */
  29. + (NSString *)appName;
  30. + (void)setAppName:(NSString *)appName;
  31. /**
  32. * @abstract Version of your app, default is value for CFBundleShortVersionString in main bundle.
  33. */
  34. + (NSString *)appVersion;
  35. + (void)setAppVersion:(NSString *)appVersion;
  36. /**
  37. * @abstract External user agent of your app, all requests sent by weex will set the user agent on header, default value is nil.
  38. */
  39. + (NSString *)externalUserAgent;
  40. + (void)setExternalUserAgent:(NSString *)userAgent;
  41. /**
  42. * @abstract JSFrameworkVersion
  43. */
  44. + (NSString *)JSFrameworkVersion;
  45. + (void)setJSFrameworkVersion:(NSString *)JSFrameworkVersion;
  46. /**
  47. + * @abstract JSFrameworkLibSize
  48. + */
  49. + (NSUInteger)JSFrameworkLibSize;
  50. + (void)setJSFrameworkLibSize:(NSUInteger)JSFrameworkLibSize;
  51. /*
  52. * @abstract customizeProtocolClasses
  53. */
  54. + (NSArray*)customizeProtocolClasses;
  55. + (void)setCustomizeProtocolClasses:(NSArray*)customizeProtocolClasses;
  56. @end