appium_lib 9.4.5 → 9.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/appium_lib.gemspec +1 -1
  4. data/docs/android_docs.md +224 -224
  5. data/docs/ios_docs.md +250 -250
  6. data/lib/appium_lib/common/version.rb +1 -1
  7. data/release_notes.md +13 -0
  8. metadata +1 -109
  9. data/android_tests/Gemfile +0 -2
  10. data/android_tests/LICENSE-2.0.txt +0 -202
  11. data/android_tests/Rakefile +0 -68
  12. data/android_tests/api.apk +0 -0
  13. data/android_tests/appium.txt +0 -11
  14. data/android_tests/flaky.txt +0 -1
  15. data/android_tests/lib/android/specs/android/element/alert.rb +0 -48
  16. data/android_tests/lib/android/specs/android/element/button.rb +0 -52
  17. data/android_tests/lib/android/specs/android/element/generic.rb +0 -58
  18. data/android_tests/lib/android/specs/android/element/text.rb +0 -35
  19. data/android_tests/lib/android/specs/android/element/textfield.rb +0 -62
  20. data/android_tests/lib/android/specs/android/helper.rb +0 -111
  21. data/android_tests/lib/android/specs/android/patch.rb +0 -27
  22. data/android_tests/lib/android/specs/common/command.rb +0 -52
  23. data/android_tests/lib/android/specs/common/device.rb +0 -159
  24. data/android_tests/lib/android/specs/common/device_touchaction.rb +0 -34
  25. data/android_tests/lib/android/specs/common/element/window.rb +0 -11
  26. data/android_tests/lib/android/specs/common/helper.rb +0 -112
  27. data/android_tests/lib/android/specs/common/patch.rb +0 -78
  28. data/android_tests/lib/android/specs/common/version.rb +0 -9
  29. data/android_tests/lib/android/specs/common/web_context.rb +0 -60
  30. data/android_tests/lib/android/specs/device/touch_actions.rb +0 -71
  31. data/android_tests/lib/android/specs/driver.rb +0 -280
  32. data/android_tests/lib/android/specs/install.rb +0 -26
  33. data/android_tests/lib/format.rb +0 -47
  34. data/android_tests/lib/run.rb +0 -91
  35. data/android_tests/readme.md +0 -30
  36. data/grid/README.md +0 -21
  37. data/grid/appium.txt.ios.example +0 -15
  38. data/grid/config.json +0 -25
  39. data/grid/hub_config.json +0 -14
  40. data/grid/selenium-server-standalone-2.53.1.jar +0 -0
  41. data/grid/selenium-server-standalone-3.2.0.jar +0 -0
  42. data/ios_tests/Gemfile +0 -4
  43. data/ios_tests/LICENSE-2.0.txt +0 -202
  44. data/ios_tests/Rakefile +0 -54
  45. data/ios_tests/UICatalog.app.zip +0 -0
  46. data/ios_tests/UICatalog.app/12-6AM.png +0 -0
  47. data/ios_tests/UICatalog.app/12-6PM.png +0 -0
  48. data/ios_tests/UICatalog.app/6-12AM.png +0 -0
  49. data/ios_tests/UICatalog.app/6-12PM.png +0 -0
  50. data/ios_tests/UICatalog.app/Default-568h@2x.png +0 -0
  51. data/ios_tests/UICatalog.app/Default@2x.png +0 -0
  52. data/ios_tests/UICatalog.app/Info.plist +0 -0
  53. data/ios_tests/UICatalog.app/PkgInfo +0 -1
  54. data/ios_tests/UICatalog.app/UIButton_custom.png +0 -0
  55. data/ios_tests/UICatalog.app/UICatalog +0 -0
  56. data/ios_tests/UICatalog.app/blueButton.png +0 -0
  57. data/ios_tests/UICatalog.app/bookmarkImage.png +0 -0
  58. data/ios_tests/UICatalog.app/bookmarkImageHighlighted.png +0 -0
  59. data/ios_tests/UICatalog.app/divider.png +0 -0
  60. data/ios_tests/UICatalog.app/en.lproj/AlertsViewController.nib +0 -0
  61. data/ios_tests/UICatalog.app/en.lproj/ButtonsViewController.nib +0 -0
  62. data/ios_tests/UICatalog.app/en.lproj/ControlsViewController.nib +0 -0
  63. data/ios_tests/UICatalog.app/en.lproj/ImagesViewController.nib +0 -0
  64. data/ios_tests/UICatalog.app/en.lproj/Localizable.strings +0 -0
  65. data/ios_tests/UICatalog.app/en.lproj/MainWindow.nib +0 -0
  66. data/ios_tests/UICatalog.app/en.lproj/PickerViewController.nib +0 -0
  67. data/ios_tests/UICatalog.app/en.lproj/SearchBarController.nib +0 -0
  68. data/ios_tests/UICatalog.app/en.lproj/SegmentViewController.nib +0 -0
  69. data/ios_tests/UICatalog.app/en.lproj/TextFieldController.nib +0 -0
  70. data/ios_tests/UICatalog.app/en.lproj/TextViewController.nib +0 -0
  71. data/ios_tests/UICatalog.app/en.lproj/ToolbarViewController.nib +0 -0
  72. data/ios_tests/UICatalog.app/en.lproj/TransitionViewController.nib +0 -0
  73. data/ios_tests/UICatalog.app/en.lproj/WebViewController.nib +0 -0
  74. data/ios_tests/UICatalog.app/orangeslide.png +0 -0
  75. data/ios_tests/UICatalog.app/scene1.jpg +0 -0
  76. data/ios_tests/UICatalog.app/scene2.jpg +0 -0
  77. data/ios_tests/UICatalog.app/scene3.jpg +0 -0
  78. data/ios_tests/UICatalog.app/scene4.jpg +0 -0
  79. data/ios_tests/UICatalog.app/scene5.jpg +0 -0
  80. data/ios_tests/UICatalog.app/searchBarBackground.png +0 -0
  81. data/ios_tests/UICatalog.app/segment_check.png +0 -0
  82. data/ios_tests/UICatalog.app/segment_search.png +0 -0
  83. data/ios_tests/UICatalog.app/segment_tools.png +0 -0
  84. data/ios_tests/UICatalog.app/segmentedBackground.png +0 -0
  85. data/ios_tests/UICatalog.app/slider_ball.png +0 -0
  86. data/ios_tests/UICatalog.app/toolbarBackground.png +0 -0
  87. data/ios_tests/UICatalog.app/whiteButton.png +0 -0
  88. data/ios_tests/UICatalog.app/yellowslide.png +0 -0
  89. data/ios_tests/appium.txt +0 -15
  90. data/ios_tests/data/unicode.txt +0 -1
  91. data/ios_tests/flaky.txt +0 -1
  92. data/ios_tests/lib/common.rb +0 -84
  93. data/ios_tests/lib/format.rb +0 -23
  94. data/ios_tests/lib/ios/specs/common/command.rb +0 -45
  95. data/ios_tests/lib/ios/specs/common/element/window.rb +0 -17
  96. data/ios_tests/lib/ios/specs/common/helper.rb +0 -228
  97. data/ios_tests/lib/ios/specs/common/patch.rb +0 -54
  98. data/ios_tests/lib/ios/specs/common/version.rb +0 -17
  99. data/ios_tests/lib/ios/specs/common/web_context.rb +0 -15
  100. data/ios_tests/lib/ios/specs/device/device.rb +0 -130
  101. data/ios_tests/lib/ios/specs/device/multi_touch.rb +0 -31
  102. data/ios_tests/lib/ios/specs/device/touch_actions.rb +0 -90
  103. data/ios_tests/lib/ios/specs/driver.rb +0 -308
  104. data/ios_tests/lib/ios/specs/ios/element/alert.rb +0 -51
  105. data/ios_tests/lib/ios/specs/ios/element/button.rb +0 -58
  106. data/ios_tests/lib/ios/specs/ios/element/generic.rb +0 -37
  107. data/ios_tests/lib/ios/specs/ios/element/text.rb +0 -63
  108. data/ios_tests/lib/ios/specs/ios/element/textfield.rb +0 -135
  109. data/ios_tests/lib/ios/specs/ios/helper.rb +0 -59
  110. data/ios_tests/lib/ios/specs/ios/mobile_methods.rb +0 -20
  111. data/ios_tests/lib/ios/specs/ios/patch.rb +0 -34
  112. data/ios_tests/lib/ios/specs/ios/xcuitest_gestures.rb +0 -110
  113. data/ios_tests/lib/run.rb +0 -4
  114. data/ios_tests/readme.md +0 -31
  115. data/ios_tests/upload/sauce_storage.rb +0 -67
  116. data/ios_tests/upload/upload.rb +0 -6
@@ -1,26 +0,0 @@
1
- describe 'install' do
2
- # To Do: Blocked on https://github.com/appium/appium/issues/3032
3
- def pkg
4
- 'io.appium.android.apis'
5
- end
6
-
7
- def installed
8
- app_installed?(pkg).must_equal true
9
- end
10
-
11
- def not_installed
12
- app_installed?(pkg).must_equal false
13
- end
14
-
15
- t 'install/uninstall' do
16
- installed
17
- remove_app 'io.appium.android.apis'
18
- not_installed
19
- install_app caps[:app]
20
- installed
21
- end
22
-
23
- # no way to launch apk after it's uninstalled/installed
24
- # blocked on: https://github.com/appium/appium/issues/2969
25
- # launch_app
26
- end
@@ -1,47 +0,0 @@
1
- # helper code useful for writing and verifying tests using Pry
2
- list = <<TXT
3
- find
4
- text
5
- texts
6
- name
7
- names
8
- scroll_to
9
- TXT
10
-
11
- list.split("\n").each do |method|
12
- puts "t '#{method}' do"
13
- puts
14
- puts 'end'
15
- puts
16
- end
17
-
18
- # --
19
-
20
- # Format AndroidElementClassMap from
21
- # https://github.com/appium/appium/blob/master/android/bootstrap/src/io/appium/android/bootstrap/AndroidElementClassMap.java
22
- # for ruby_lib android/helper.rb tag_name_to_android
23
- list = <<TXT
24
- map.put("abslist", "AbsListView");
25
- map.put("button", "Button");
26
- TXT
27
-
28
- list.split("\n").each do |method|
29
- pair = method.match(/"([^"]+)"[^"]+"([^"]+)"/)
30
- tag = pair[1]
31
- klass = pair[2]
32
-
33
- indent = 6
34
- puts ' ' * indent + "when '" + tag + "'"
35
- line_2 = ' ' * (indent + 2) + "prefix '" + klass + "'"
36
- # button must translate to both button and image button
37
- # for ruby_lib to find all buttons
38
- line_2 += ", 'ImageButton'" if klass == 'Button'
39
- puts line_2
40
- end
41
-
42
- # for Pry
43
- # class Object
44
- # def must_equal b
45
- # raise 'not equal' unless self == b
46
- # end
47
- # end
@@ -1,91 +0,0 @@
1
- require 'rubygems'
2
- require 'spec'
3
- require 'fakefs/safe'
4
- require 'hashdiff'
5
- require_relative '../../lib/appium_lib'
6
-
7
- # Run all Android tests:
8
- # ruby run.rb android
9
-
10
- # Run only the view album test:
11
- # ruby run.rb ios view_album
12
-
13
- def start_driver(caps)
14
- driver = Appium::Driver.new(caps)
15
- # Tests expect methods defined on the minispec object
16
- Appium.promote_appium_methods ::Minitest::Spec
17
- driver.start_driver
18
- end
19
-
20
- # Sanity check
21
- a = OpenStruct.new x: 'ok'
22
- raise 'x issue' unless a.x == 'ok'
23
-
24
- dir = File.expand_path(File.join(Dir.pwd, 'lib'))
25
- appium_txt = File.join(Dir.pwd, 'appium.txt')
26
- device = ARGV[0].downcase.strip
27
- devices = %w(android selendroid ios)
28
- raise 'Expected android, selendroid or ios as first argument' unless devices.include? device
29
-
30
- one_test = ARGV[1]
31
- test_dir = "/#{device}/"
32
-
33
- caps = Appium.load_settings file: appium_txt, verbose: true
34
- caps = if caps[:appium_lib]
35
- appium_lib = caps[:appium_lib]
36
- appium_lib = appium_lib.merge(debug: true) unless appium_lib[:debug]
37
- appium_lib = appium_lib.merge(wait: 1) unless appium_lib[:wait]
38
- caps.merge(appium_lib: appium_lib)
39
- else
40
- caps.merge(appium_lib: { debug: true, wait: 1 })
41
- end
42
- caps[:app] = ENV['SAUCE_PATH'] if ENV['SAUCE_USERNAME'] && ENV['SAUCE_ACCESS_KEY']
43
-
44
- trace_files = []
45
-
46
- if one_test
47
- if File.exist? one_test
48
- one_test = File.expand_path one_test
49
- else
50
- # ensure ext is .rb
51
- one_test = File.join(File.dirname(one_test),
52
- File.basename(one_test, '.*') + '.rb')
53
- one_test = File.join(dir, test_dir + 'specs/', one_test)
54
- end
55
-
56
- raise "\nTest #{one_test} does not exist.\n" unless File.exist?(one_test)
57
- start_driver(caps)
58
-
59
- # require support (common.rb)
60
- file_name = File.join dir, test_dir + '/*.rb'
61
- Dir.glob(file_name) do |test|
62
- require test
63
- trace_files << test
64
- end
65
- puts "Loading one test: #{one_test}"
66
- require one_test
67
- trace_files << one_test
68
- else
69
- # require all
70
- file_names = File.join(dir, test_dir + '**/*.rb')
71
- Dir.glob(file_names) do |test|
72
- # load all tests
73
- trace_files << test
74
- puts " #{File.basename(test, '.*')}"
75
- require test
76
- end
77
-
78
- start_driver(caps)
79
- end
80
-
81
- trace_files.map! do |f|
82
- f = File.expand_path f
83
- # ensure all traced files end in .rb
84
- f = File.join(File.dirname(f), File.basename(f, '.*') + '.rb')
85
- f
86
- end
87
-
88
- # Exit after tests.
89
- Minitest.after_run { $driver.x if $driver }
90
- # Run Minitest. Provide test file array for tracing.
91
- Minitest.run_specs(trace: trace_files)
@@ -1,30 +0,0 @@
1
- ruby_lib_android
2
- =====================
3
-
4
- ruby_lib's Android tests. Requires `Ruby 2.2+` or better.
5
-
6
- - `rake install` Install gems required to run the tests.
7
- - `rake android` Run all tests.
8
- - `rake android['android/element/generic']` Run a single test.
9
- - `arc` Opens the Appium Ruby Console (arc). Enables interactive testing.
10
- - `gem install appium_console` if it's not installed already.
11
-
12
- api.apk is from [appium/android-apidemos](https://github.com/appium/android-apidemos)
13
- The way to generate api.apk is described in the repository.
14
-
15
- #### Documentation
16
-
17
- - [Installing Appium on OS X](https://github.com/appium/ruby_console/blob/master/osx.md)
18
- - [Overview](https://github.com/appium/ruby_lib/blob/master/docs/docs.md)
19
- - [Android methods](https://github.com/appium/ruby_lib/blob/master/docs/android_docs.md)
20
- - [Minitest Expectations](http://ruby-doc.org/stdlib-1.9.3/libdoc/minitest/spec/rdoc/MiniTest/Expectations.html)
21
-
22
- --
23
-
24
- These results are run against Intel HAXM emulator (Nexus 7, Android 5.0.1, API 21)
25
-
26
- ```java
27
- Finished in 2 mins 57 secs
28
-
29
- 106 runs, 144 assertions, 0 failures, 0 errors, 0 skips
30
- ```
@@ -1,21 +0,0 @@
1
- # Run Grid
2
-
3
- ```bash
4
- $ java -jar selenium-server-standalone-2.53.1.jar -role hub -hubConfig hub_config.json
5
- ```
6
-
7
- # Run Appium
8
-
9
- ```bash
10
- $ node . --nodeconfig ~/GitHub/ruby_lib/grid/config.json
11
-
12
- # or
13
-
14
- $ appium --nodeconfig ~/GitHub/ruby_lib/grid/config.json
15
- ```
16
-
17
- # Run Ruby Script
18
-
19
- ```bash
20
- $ rake ios # for example
21
- ```
@@ -1,15 +0,0 @@
1
- [caps]
2
- platformName = "ios"
3
- platformVersion = "10.3"
4
- deviceName = "iPhone Simulator"
5
- browserName = "Safari"
6
- some_capability = "some_capability"
7
-
8
- [appium_lib]
9
- server_url = "http://localhost:4444/wd/hub"
10
- sauce_username = ""
11
- sauce_access_key = ""
12
- sauce_endpoint = ""
13
- wait = 30
14
- wait_timeout = 20
15
- wait_interval = 1
@@ -1,25 +0,0 @@
1
- {
2
- "capabilities":
3
- [
4
- {
5
- "browserName": "Safari",
6
- "version":"9.0",
7
- "platform":"MAC",
8
- "maxInstances": 1
9
- }
10
- ],
11
- "configuration":
12
- {
13
- "cleanUpCycle": 2000,
14
- "timeout": 60000,
15
- "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
16
- "url": "http://localhost:4723/wd/hub",
17
- "host": "localhost",
18
- "port": 4723,
19
- "maxSession": 1,
20
- "register": true,
21
- "registerCycle": 5000,
22
- "hubPort": 4444,
23
- "hubHost": "localhost"
24
- }
25
- }
@@ -1,14 +0,0 @@
1
- {
2
- "port": 4444,
3
- "newSessionWaitTimeout": -1,
4
- "servlets" : [],
5
- "withoutServlets": [],
6
- "custom": {},
7
- "capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
8
- "throwOnCapabilityNotPresent": true,
9
- "cleanUpCycle": 5000,
10
- "role": "hub",
11
- "debug": false,
12
- "browserTimeout": 0,
13
- "timeout": 1800
14
- }
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec path: File.expand_path('../../', __FILE__) # __dir__ fails on 1.9
3
-
4
- gem 'appium_console'
@@ -1,202 +0,0 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS
178
-
179
- APPENDIX: How to apply the Apache License to your work.
180
-
181
- To apply the Apache License to your work, attach the following
182
- boilerplate notice, with the fields enclosed by brackets "[]"
183
- replaced with your own identifying information. (Don't include
184
- the brackets!) The text should be enclosed in the appropriate
185
- comment syntax for the file format. We also recommend that a
186
- file or class name and description of purpose be included on the
187
- same "printed page" as the copyright notice for easier
188
- identification within third-party archives.
189
-
190
- Copyright [yyyy] [name of copyright owner]
191
-
192
- Licensed under the Apache License, Version 2.0 (the "License");
193
- you may not use this file except in compliance with the License.
194
- You may obtain a copy of the License at
195
-
196
- http://www.apache.org/licenses/LICENSE-2.0
197
-
198
- Unless required by applicable law or agreed to in writing, software
199
- distributed under the License is distributed on an "AS IS" BASIS,
200
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
- See the License for the specific language governing permissions and
202
- limitations under the License.