diff --git a/Android/AndroidThings/build.cake b/Android/AndroidThings/build.cake
index 6663813860..e98e572f6e 100644
--- a/Android/AndroidThings/build.cake
+++ b/Android/AndroidThings/build.cake
@@ -71,6 +71,7 @@ Task("nuget")
Task("samples")
.IsDependentOn("nuget");
Task("component");
+
Task("ci")
.IsDependentOn("samples");
diff --git a/Android/AndroidThings/samples/WeatherStation/Resources/Resource.Designer.cs b/Android/AndroidThings/samples/WeatherStation/Resources/Resource.Designer.cs
new file mode 100644
index 0000000000..7e1b744cf1
--- /dev/null
+++ b/Android/AndroidThings/samples/WeatherStation/Resources/Resource.Designer.cs
@@ -0,0 +1,120 @@
+#pragma warning disable 1591
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+[assembly: global::Android.Runtime.ResourceDesignerAttribute("WeatherStation.Resource", IsApplication=true)]
+
+namespace WeatherStation
+{
+
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")]
+ public partial class Resource
+ {
+
+ static Resource()
+ {
+ global::Android.Runtime.ResourceIdManager.UpdateIdValues();
+ }
+
+ public static void UpdateIdValues()
+ {
+ }
+
+ public partial class Attribute
+ {
+
+ static Attribute()
+ {
+ global::Android.Runtime.ResourceIdManager.UpdateIdValues();
+ }
+
+ private Attribute()
+ {
+ }
+ }
+
+ public partial class Drawable
+ {
+
+ // aapt resource value: 0x7F010003
+ public const int Icon = 2130771971;
+
+ // aapt resource value: 0x7F010000
+ public const int ic_cloudy = 2130771968;
+
+ // aapt resource value: 0x7F010001
+ public const int ic_rainy = 2130771969;
+
+ // aapt resource value: 0x7F010002
+ public const int ic_sunny = 2130771970;
+
+ static Drawable()
+ {
+ global::Android.Runtime.ResourceIdManager.UpdateIdValues();
+ }
+
+ private Drawable()
+ {
+ }
+ }
+
+ public partial class Id
+ {
+
+ // aapt resource value: 0x7F020000
+ public const int imageView = 2130837504;
+
+ static Id()
+ {
+ global::Android.Runtime.ResourceIdManager.UpdateIdValues();
+ }
+
+ private Id()
+ {
+ }
+ }
+
+ public partial class Layout
+ {
+
+ // aapt resource value: 0x7F030000
+ public const int Main = 2130903040;
+
+ static Layout()
+ {
+ global::Android.Runtime.ResourceIdManager.UpdateIdValues();
+ }
+
+ private Layout()
+ {
+ }
+ }
+
+ public partial class String
+ {
+
+ // aapt resource value: 0x7F040000
+ public const int ApplicationName = 2130968576;
+
+ // aapt resource value: 0x7F040001
+ public const int Hello = 2130968577;
+
+ static String()
+ {
+ global::Android.Runtime.ResourceIdManager.UpdateIdValues();
+ }
+
+ private String()
+ {
+ }
+ }
+ }
+}
+#pragma warning restore 1591
diff --git a/Android/KotlinXCoroutines/.gitignore b/Android/KotlinXCoroutines/.gitignore
new file mode 100644
index 0000000000..62c893550a
--- /dev/null
+++ b/Android/KotlinXCoroutines/.gitignore
@@ -0,0 +1 @@
+.idea/
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/External-Dependency-Info.txt b/Android/KotlinXCoroutines/External-Dependency-Info.txt
new file mode 100644
index 0000000000..b088fa7ba2
--- /dev/null
+++ b/Android/KotlinXCoroutines/External-Dependency-Info.txt
@@ -0,0 +1,213 @@
+THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
+Do not translate or localize
+
+Xamarin Components for Kotlinx Coroutines incorporates
+third party material from the projects listed below. The original copyright
+notice and the license under which Microsoft received such third party
+material are set forth below. Microsoft reserves all other rights not
+expressly granted, whether by implication, estoppel or otherwise.
+
+########################################
+# Kotlinx Coroutines
+# https://github.com/Kotlin/kotlinx.coroutines
+########################################
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/KotlinXCoroutines.sln b/Android/KotlinXCoroutines/KotlinXCoroutines.sln
new file mode 100644
index 0000000000..faf90f3c9c
--- /dev/null
+++ b/Android/KotlinXCoroutines/KotlinXCoroutines.sln
@@ -0,0 +1,55 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30717.126
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KotlinX.Coroutines.Core", "source\KotlinX.Coroutines.Core\KotlinX.Coroutines.Core.csproj", "{ADC36DAA-E73E-49B5-B09A-2FD21624C2C5}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KotlinX.Coroutines.Android", "source\KotlinX.Coroutines.Android\KotlinX.Coroutines.Android.csproj", "{C1D66FDB-0EEF-45E3-81DA-34E6B0E20682}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KotlinX.Coroutines.Core.Jvm", "source\KotlinX.Coroutines.Core.Jvm\KotlinX.Coroutines.Core.Jvm.csproj", "{FD684F53-BBBB-4E7A-8197-829A92AA32D8}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KotlinX.Coroutines.Jdk8", "source\KotlinX.Coroutines.Jdk8\KotlinX.Coroutines.Jdk8.csproj", "{A9826864-B261-45C1-A19C-992A3BE7D1FE}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KotlinX.Coroutines.Reactive", "source\KotlinX.Coroutines.Reactive\KotlinX.Coroutines.Reactive.csproj", "{779DAC7E-4C3C-4514-97DF-272A423F7863}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KotlinX.Coroutines.Rx2", "source\KotlinX.Coroutines.Rx2\KotlinX.Coroutines.Rx2.csproj", "{7BEB9F77-2739-4F18-A714-EDB03BDC7E53}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {ADC36DAA-E73E-49B5-B09A-2FD21624C2C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ADC36DAA-E73E-49B5-B09A-2FD21624C2C5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ADC36DAA-E73E-49B5-B09A-2FD21624C2C5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {ADC36DAA-E73E-49B5-B09A-2FD21624C2C5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C1D66FDB-0EEF-45E3-81DA-34E6B0E20682}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C1D66FDB-0EEF-45E3-81DA-34E6B0E20682}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C1D66FDB-0EEF-45E3-81DA-34E6B0E20682}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C1D66FDB-0EEF-45E3-81DA-34E6B0E20682}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FD684F53-BBBB-4E7A-8197-829A92AA32D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FD684F53-BBBB-4E7A-8197-829A92AA32D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FD684F53-BBBB-4E7A-8197-829A92AA32D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FD684F53-BBBB-4E7A-8197-829A92AA32D8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A9826864-B261-45C1-A19C-992A3BE7D1FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A9826864-B261-45C1-A19C-992A3BE7D1FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A9826864-B261-45C1-A19C-992A3BE7D1FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A9826864-B261-45C1-A19C-992A3BE7D1FE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {779DAC7E-4C3C-4514-97DF-272A423F7863}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {779DAC7E-4C3C-4514-97DF-272A423F7863}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {779DAC7E-4C3C-4514-97DF-272A423F7863}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {779DAC7E-4C3C-4514-97DF-272A423F7863}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7BEB9F77-2739-4F18-A714-EDB03BDC7E53}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7BEB9F77-2739-4F18-A714-EDB03BDC7E53}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7BEB9F77-2739-4F18-A714-EDB03BDC7E53}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7BEB9F77-2739-4F18-A714-EDB03BDC7E53}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {CAC0F9D3-A924-4A83-8ED8-6DE2B30345DE}
+ EndGlobalSection
+EndGlobal
diff --git a/Android/KotlinXCoroutines/License.md b/Android/KotlinXCoroutines/License.md
new file mode 100644
index 0000000000..877e4d936c
--- /dev/null
+++ b/Android/KotlinXCoroutines/License.md
@@ -0,0 +1,19 @@
+**Xamarin is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may require or install dependencies which are governed by additional licenses.**
+
+Note: This component depends on
+Kotlinx Coroutines [kotlin/kotlinx.coroutines](https://github.com/Kotlin/kotlinx.coroutines) which is subject to the [Apache 2.0](https://github.com/Kotlin/kotlinx.coroutines/blob/master/LICENSE.txt)
+
+### Xamarin Component for Kotlinx Coroutines for Xamarin.Android
+
+**The MIT License (MIT)**
+
+Copyright (c) .NET Foundation Contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+20160601
+
diff --git a/Android/KotlinXCoroutines/build.cake b/Android/KotlinXCoroutines/build.cake
new file mode 100644
index 0000000000..e73b75831a
--- /dev/null
+++ b/Android/KotlinXCoroutines/build.cake
@@ -0,0 +1,136 @@
+#addin nuget:?package=SharpZipLib&version=1.3.1
+
+var TARGET = Argument ("t", Argument ("target", "ci"));
+
+var KOTLINX_VERSION = "1.4.1";
+var KOTLINX_NUGET_VERSION = "1.4.1";
+
+var KOTLINX_CORE_JAR_URL = $"https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core/{KOTLINX_VERSION}/kotlinx-coroutines-core-{KOTLINX_VERSION}.jar";
+var KOTLINX_CORE_DOCS_URL = $"https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core/{KOTLINX_VERSION}/kotlinx-coroutines-core-{KOTLINX_VERSION}-javadoc.jar";
+
+var KOTLINX_ANDROID_JAR_URL = $"https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-android/{KOTLINX_VERSION}/kotlinx-coroutines-android-{KOTLINX_VERSION}.jar";
+var KOTLINX_ANDROID_DOCS_URL = $"https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-android/{KOTLINX_VERSION}/kotlinx-coroutines-android-{KOTLINX_VERSION}-javadoc.jar";
+
+var KOTLINX_JDK8_JAR_URL = $"https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-jdk8/{KOTLINX_VERSION}/kotlinx-coroutines-jdk8-{KOTLINX_VERSION}.jar";
+var KOTLINX_JDK8_DOCS_URL = $"https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-jdk8/{KOTLINX_VERSION}/kotlinx-coroutines-jdk8-{KOTLINX_VERSION}-javadoc.jar";
+
+var KOTLINX_JVM_JAR_URL = $"https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core-jvm/{KOTLINX_VERSION}/kotlinx-coroutines-core-jvm-{KOTLINX_VERSION}.jar";
+var KOTLINX_JVM_DOCS_URL = $"https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core-jvm/{KOTLINX_VERSION}/kotlinx-coroutines-core-jvm-{KOTLINX_VERSION}-javadoc.jar";
+
+var KOTLINX_REACTIVE_JAR_URL = $"https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-reactive/{KOTLINX_VERSION}/kotlinx-coroutines-reactive-{KOTLINX_VERSION}.jar";
+var KOTLINX_REACTIVE_DOCS_URL = $"https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-reactive/{KOTLINX_VERSION}/kotlinx-coroutines-reactive-{KOTLINX_VERSION}-javadoc.jar";
+
+var KOTLINX_RX2_JAR_URL = $"https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-rx2/{KOTLINX_VERSION}/kotlinx-coroutines-rx2-{KOTLINX_VERSION}.jar";
+var KOTLINX_RX2_DOCS_URL = $"https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-rx2/{KOTLINX_VERSION}/kotlinx-coroutines-rx2-{KOTLINX_VERSION}-javadoc.jar";
+
+
+Task ("externals")
+ .WithCriteria (!FileExists ("./externals/kotlinx-coroutines-core.jar"))
+ .Does (() =>
+{
+ EnsureDirectoryExists ("./externals/");
+
+ // Download Dependencies
+ DownloadFile (KOTLINX_CORE_JAR_URL, "./externals/kotlinx-coroutines-core.jar");
+ DownloadFile (KOTLINX_CORE_DOCS_URL, "./externals/kotlinx-coroutines-core-javadocs.jar");
+
+ DownloadFile (KOTLINX_ANDROID_JAR_URL, "./externals/kotlinx-coroutines-android.jar");
+ DownloadFile (KOTLINX_ANDROID_DOCS_URL, "./externals/kotlinx-coroutines-android-javadocs.jar");
+
+ DownloadFile (KOTLINX_JDK8_JAR_URL, "./externals/kotlinx-coroutines-jdk8.jar");
+ DownloadFile (KOTLINX_JDK8_DOCS_URL, "./externals/kotlinx-coroutines-jdk8-javadocs.jar");
+
+ DownloadFile (KOTLINX_JVM_JAR_URL, "./externals/kotlinx-coroutines-core-jvm.jar");
+ DownloadFile (KOTLINX_JVM_DOCS_URL, "./externals/kotlinx-coroutines-core-jvm-javadocs.jar");
+
+ DownloadFile (KOTLINX_REACTIVE_JAR_URL, "./externals/kotlinx-coroutines-reactive.jar");
+ DownloadFile (KOTLINX_REACTIVE_DOCS_URL, "./externals/kotlinx-coroutines-reactive-javadocs.jar");
+
+ DownloadFile (KOTLINX_RX2_JAR_URL, "./externals/kotlinx-coroutines-rx2.jar");
+ DownloadFile (KOTLINX_RX2_DOCS_URL, "./externals/kotlinx-coroutines-rx2-javadocs.jar");
+
+ Unzip ("./externals/kotlinx-coroutines-core-javadocs.jar", "./externals/kotlinx-coroutines-core-javadocs/");
+ Unzip ("./externals/kotlinx-coroutines-android-javadocs.jar", "./externals/kotlinx-coroutines-android-javadocs/");
+ Unzip ("./externals/kotlinx-coroutines-jdk8-javadocs.jar", "./externals/kotlinx-coroutines-jdk8-javadocs/");
+ Unzip ("./externals/kotlinx-coroutines-core-jvm-javadocs.jar", "./externals/kotlinx-coroutines-core-jvm-javadocs/");
+ Unzip ("./externals/kotlinx-coroutines-reactive-javadocs.jar", "./externals/kotlinx-coroutines-reactive-javadocs/");
+ Unzip ("./externals/kotlinx-coroutines-rx2-javadocs.jar", "./externals/kotlinx-coroutines-rx2-javadocs/");
+
+
+ // Update .csproj nuget versions
+ XmlPoke("./source/KotlinX.Coroutines.Core/KotlinX.Coroutines.Core.csproj", "/Project/PropertyGroup/PackageVersion", KOTLINX_NUGET_VERSION);
+ XmlPoke("./source/KotlinX.Coroutines.Android/KotlinX.Coroutines.Android.csproj", "/Project/PropertyGroup/PackageVersion", KOTLINX_NUGET_VERSION);
+ XmlPoke("./source/KotlinX.Coroutines.Jdk8/KotlinX.Coroutines.Jdk8.csproj", "/Project/PropertyGroup/PackageVersion", KOTLINX_NUGET_VERSION);
+ XmlPoke("./source/KotlinX.Coroutines.Core.Jvm/KotlinX.Coroutines.Core.Jvm.csproj", "/Project/PropertyGroup/PackageVersion", KOTLINX_NUGET_VERSION);
+ XmlPoke("./source/KotlinX.Coroutines.Reactive/KotlinX.Coroutines.Reactive.csproj", "/Project/PropertyGroup/PackageVersion", KOTLINX_NUGET_VERSION);
+ XmlPoke("./source/KotlinX.Coroutines.Rx2/KotlinX.Coroutines.Rx2.csproj", "/Project/PropertyGroup/PackageVersion", KOTLINX_NUGET_VERSION);
+});
+
+Task("native")
+ .Does(() =>
+{
+ var fn = IsRunningOnWindows() ? "gradlew.bat" : "gradlew";
+ var gradlew = MakeAbsolute((FilePath)("./native/KotlinxCoroutinesSample/" + fn));
+ var exit = StartProcess(gradlew, new ProcessSettings {
+ Arguments = "assemble",
+ WorkingDirectory = "./native/KotlinxCoroutinesSample/"
+ });
+ if (exit != 0) throw new Exception($"Gradle exited with exit code {exit}.");
+});
+
+Task("libs")
+ .IsDependentOn("externals")
+ .Does(() =>
+{
+ MSBuild("./KotlinXCoroutines.sln", c => {
+ c.Configuration = "Release";
+ c.Restore = true;
+ c.Properties.Add("DesignTimeBuild", new [] { "false" });
+ });
+});
+
+Task("nuget")
+ .IsDependentOn("libs")
+ .Does(() =>
+{
+ MSBuild ("./KotlinXCoroutines.sln", c => {
+ c.Configuration = "Release";
+ c.Targets.Clear();
+ c.Targets.Add("Pack");
+ c.Properties.Add("PackageOutputPath", new [] { MakeAbsolute(new FilePath("./output")).FullPath });
+ c.Properties.Add("PackageRequireLicenseAcceptance", new [] { "true" });
+ c.Properties.Add("DesignTimeBuild", new [] { "false" });
+ });
+});
+
+Task("samples")
+ .IsDependentOn("native")
+ .IsDependentOn("nuget")
+ .Does(() =>
+{
+ var settings = new MSBuildSettings()
+ .SetConfiguration("Release")
+ .SetVerbosity(Verbosity.Minimal)
+ .EnableBinaryLogger("./output/samples.binlog")
+ .WithRestore()
+ .WithProperty("DesignTimeBuild", "false");
+
+ MSBuild("./samples/KotlinxCoroutinesSample.sln", settings);
+});
+
+Task("ci")
+ .IsDependentOn("externals")
+ .IsDependentOn("nuget")
+ .IsDependentOn("samples");
+
+Task ("clean")
+ .Does (() =>
+{
+ if (DirectoryExists ("./externals/"))
+ DeleteDirectory ("./externals", new DeleteDirectorySettings {
+ Recursive = true,
+ Force = true
+ });
+});
+
+RunTarget (TARGET);
diff --git a/Android/KotlinXCoroutines/cgmanifest.json b/Android/KotlinXCoroutines/cgmanifest.json
new file mode 100644
index 0000000000..2a457a7f94
--- /dev/null
+++ b/Android/KotlinXCoroutines/cgmanifest.json
@@ -0,0 +1,65 @@
+{
+ "Registrations":[
+ {
+ "Component": {
+ "Type": "Maven",
+ "Maven": {
+ "ArtifactId": "kotlinx-coroutines-core",
+ "GroupId": "org.jetbrains.kotlinx",
+ "Version": "1.4.1 "
+ }
+ }
+ },
+ {
+ "Component": {
+ "Type": "Maven",
+ "Maven": {
+ "ArtifactId": "kotlinx-coroutines-android",
+ "GroupId": "org.jetbrains.kotlinx",
+ "Version": "1.4.1 "
+ }
+ }
+ },
+ {
+ "Component": {
+ "Type": "Maven",
+ "Maven": {
+ "ArtifactId": "kotlinx-coroutines-jdk8",
+ "GroupId": "org.jetbrains.kotlinx",
+ "Version": "1.4.1 "
+ }
+ }
+ },
+ {
+ "Component": {
+ "Type": "Maven",
+ "Maven": {
+ "ArtifactId": "kotlinx-coroutines-core-jvm",
+ "GroupId": "org.jetbrains.kotlinx",
+ "Version": "1.4.1 "
+ }
+ }
+ },
+ {
+ "Component": {
+ "Type": "Maven",
+ "Maven": {
+ "ArtifactId": "kotlinx-coroutines-reactive",
+ "GroupId": "org.jetbrains.kotlinx",
+ "Version": "1.4.1 "
+ }
+ }
+ },
+ {
+ "Component": {
+ "Type": "Maven",
+ "Maven": {
+ "ArtifactId": "kotlinx-coroutines-rx2",
+ "GroupId": "org.jetbrains.kotlinx",
+ "Version": "1.4.1 "
+ }
+ }
+ }
+ ],
+ "Version": 1
+}
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/.gitignore b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/.gitignore
new file mode 100644
index 0000000000..09b993d06b
--- /dev/null
+++ b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/.gitignore
@@ -0,0 +1,8 @@
+*.iml
+.gradle
+/local.properties
+/.idea
+.DS_Store
+/build
+/captures
+.externalNativeBuild
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/build.gradle b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/build.gradle
new file mode 100644
index 0000000000..69507c3eec
--- /dev/null
+++ b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/build.gradle
@@ -0,0 +1,27 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+buildscript {
+ ext.kotlin_version = "1.4.0"
+ ext.kotlinx_coroutines_version = "1.4.1"
+ repositories {
+ google()
+ jcenter()
+ }
+ dependencies {
+ classpath "com.android.tools.build:gradle:4.1.1"
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradle.properties b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradle.properties
new file mode 100644
index 0000000000..98bed167dc
--- /dev/null
+++ b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradle.properties
@@ -0,0 +1,21 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app"s APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Automatically convert third-party libraries to use AndroidX
+android.enableJetifier=true
+# Kotlin code style for this project: "official" or "obsolete":
+kotlin.code.style=official
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradle/wrapper/gradle-wrapper.jar b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000000..f6b961fd5a
Binary files /dev/null and b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradle/wrapper/gradle-wrapper.properties b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000000..367bdd3db7
--- /dev/null
+++ b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Sun Dec 20 21:47:20 CET 2020
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradlew b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradlew
new file mode 100755
index 0000000000..cccdd3d517
--- /dev/null
+++ b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradlew.bat b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradlew.bat
new file mode 100644
index 0000000000..e95643d6a2
--- /dev/null
+++ b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/gradlew.bat
@@ -0,0 +1,84 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/.gitignore b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/.gitignore
new file mode 100644
index 0000000000..42afabfd2a
--- /dev/null
+++ b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/build.gradle b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/build.gradle
new file mode 100644
index 0000000000..b8e38ded08
--- /dev/null
+++ b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/build.gradle
@@ -0,0 +1,35 @@
+apply plugin: 'com.android.library'
+apply plugin: 'kotlin-android'
+apply plugin: 'kotlin-android-extensions'
+
+android {
+ compileSdkVersion 29
+
+ defaultConfig {
+ minSdkVersion 19
+ targetSdkVersion 29
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+ implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinx_coroutines_version"
+ implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinx_coroutines_version"
+ implementation "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:$kotlinx_coroutines_version"
+ implementation 'androidx.appcompat:appcompat:1.2.0'
+ implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
+ testImplementation 'junit:junit:4.13.1'
+ testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinx_coroutines_version"
+}
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/proguard-rules.pro b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/proguard-rules.pro
new file mode 100644
index 0000000000..481bb43481
--- /dev/null
+++ b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/src/main/AndroidManifest.xml b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/src/main/AndroidManifest.xml
new file mode 100644
index 0000000000..c7b2bc90e7
--- /dev/null
+++ b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/src/main/AndroidManifest.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/src/main/java/com/example/kotlinxcoroutinessample/KotlinxCoroutineTestClass.kt b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/src/main/java/com/example/kotlinxcoroutinessample/KotlinxCoroutineTestClass.kt
new file mode 100644
index 0000000000..3f2d6459a1
--- /dev/null
+++ b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/kotlinxcoroutinessample/src/main/java/com/example/kotlinxcoroutinessample/KotlinxCoroutineTestClass.kt
@@ -0,0 +1,40 @@
+package com.example.kotlinxcoroutinessample
+
+import android.widget.TextView
+import kotlinx.coroutines.*
+
+class KotlinxCoroutineTestClass(private val textView: TextView) {
+
+ fun testGlobalScope() {
+ GlobalScope.launch { // launch a new coroutine in background and continue
+ delay(1000L)
+ addTextToTextView("Kotlinx Coroutine!\n")
+ }
+ addTextToTextView("Hello, ")
+ }
+
+ fun testScopeBuilder(){
+ runBlocking { // this: CoroutineScope
+ launch {
+ delay(200L)
+ addTextToTextView("\n2. Task from runBlocking")
+ }
+
+ coroutineScope { // Creates a coroutine scope
+ launch {
+ delay(500L)
+ addTextToTextView("\n3. Task from nested launch")
+ }
+
+ delay(100L)
+ addTextToTextView("\n1. Task from coroutine scope") // This line will be printed before the nested launch
+ }
+
+ addTextToTextView("\n4. Coroutine scope is over") // This line is not printed until the nested launch completes
+ }
+ }
+
+ private fun addTextToTextView(text: String) {
+ textView.append(text)
+ }
+}
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/settings.gradle b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/settings.gradle
new file mode 100644
index 0000000000..c4ccd65881
--- /dev/null
+++ b/Android/KotlinXCoroutines/native/KotlinxCoroutinesSample/settings.gradle
@@ -0,0 +1 @@
+include ':kotlinxcoroutinessample'
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample.sln b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample.sln
new file mode 100644
index 0000000000..c711e4bc69
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.808.4
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KotlinxCoroutinesSample", "KotlinxCoroutinesSample\KotlinxCoroutinesSample.csproj", "{46AAB3CE-6E71-4D4F-96F0-416E2C7DD9B4}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KotlinxCoroutinesSampleLibrary", "KotlinxCoroutinesSampleLibrary\KotlinxCoroutinesSampleLibrary.csproj", "{7990AD17-9BDE-475D-94C9-E38595AB8EC2}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {46AAB3CE-6E71-4D4F-96F0-416E2C7DD9B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {46AAB3CE-6E71-4D4F-96F0-416E2C7DD9B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {46AAB3CE-6E71-4D4F-96F0-416E2C7DD9B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {46AAB3CE-6E71-4D4F-96F0-416E2C7DD9B4}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7990AD17-9BDE-475D-94C9-E38595AB8EC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7990AD17-9BDE-475D-94C9-E38595AB8EC2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7990AD17-9BDE-475D-94C9-E38595AB8EC2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7990AD17-9BDE-475D-94C9-E38595AB8EC2}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {827A854B-5EA3-49F0-9125-F66B156464AD}
+ EndGlobalSection
+EndGlobal
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Assets/AboutAssets.txt b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Assets/AboutAssets.txt
new file mode 100644
index 0000000000..dcb04096ff
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Assets/AboutAssets.txt
@@ -0,0 +1,19 @@
+Any raw assets you want to be deployed with your application can be placed in
+this directory (and child directories) and given a Build Action of "AndroidAsset".
+
+These files will be deployed with your package and will be accessible using Android's
+AssetManager, like this:
+
+public class ReadAsset : Activity
+{
+ protected override void OnCreate (Bundle bundle)
+ {
+ base.OnCreate (bundle);
+
+ InputStream input = Assets.Open ("my_asset.txt");
+ }
+}
+
+Additionally, some Android functions will automatically load asset files:
+
+Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/KotlinxCoroutinesSample.csproj b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/KotlinxCoroutinesSample.csproj
new file mode 100644
index 0000000000..01d436cc64
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/KotlinxCoroutinesSample.csproj
@@ -0,0 +1,127 @@
+
+
+
+ Debug
+ AnyCPU
+ 8.0.30703
+ 2.0
+ {46AAB3CE-6E71-4D4F-96F0-416E2C7DD9B4}
+ {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ {122416d6-6b49-4ee2-a1e8-b825f31c79fe}
+ Library
+ Properties
+ KotlinxCoroutinesSample
+ KotlinxCoroutinesSample
+ 512
+ True
+ True
+ Resources\Resource.designer.cs
+ Resource
+ Off
+ v10.0
+ Properties\AndroidManifest.xml
+ Resources
+ Assets
+ true
+ true
+
+
+ True
+ portable
+ False
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+ True
+ None
+ False
+
+
+ True
+ portable
+ True
+ bin\Release\
+ TRACE
+ prompt
+ 4
+ true
+ False
+ SdkOnly
+ True
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Designer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.4.1
+
+
+ 1.4.20
+
+
+
+
+ {7990AD17-9BDE-475D-94C9-E38595AB8EC2}
+ KotlinxCoroutinesSampleLibrary
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/MainActivity.cs b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/MainActivity.cs
new file mode 100644
index 0000000000..1e66c1d902
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/MainActivity.cs
@@ -0,0 +1,48 @@
+using System;
+using System.Threading;
+using Android.App;
+using Android.OS;
+using Android.Runtime;
+using Android.Widget;
+using AndroidX.AppCompat.App;
+
+namespace KotlinxCoroutinesSample
+{
+ [Activity(Label = "@string/app_name", Theme = "@style/AppTheme", MainLauncher = true)]
+ public class MainActivity : AppCompatActivity
+ {
+ private TextView textView;
+
+ protected override void OnCreate(Bundle savedInstanceState)
+ {
+ base.OnCreate(savedInstanceState);
+ // Set our view from the "main" layout resource
+ SetContentView(Resource.Layout.activity_main);
+
+ textView = FindViewById(Resource.Id.textView);
+ textView.Text = "";
+
+ KotlinxCoroutinesTestGlobalScope();
+
+ Thread.Sleep(3000);
+
+ KotlinxCoroutinesTestScopeBuilder();
+
+ textView.Append("\n\nEnd\n\n");
+ }
+
+ private void KotlinxCoroutinesTestScopeBuilder()
+ {
+ var k = new Com.Example.Kotlinxcoroutinessample.KotlinxCoroutineTestClass(textView);
+
+ k.TestScopeBuilder();
+ }
+
+ private void KotlinxCoroutinesTestGlobalScope()
+ {
+ var k = new Com.Example.Kotlinxcoroutinessample.KotlinxCoroutineTestClass(textView);
+
+ k.TestGlobalScope();
+ }
+ }
+}
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Properties/AndroidManifest.xml b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Properties/AndroidManifest.xml
new file mode 100644
index 0000000000..2399b10595
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Properties/AndroidManifest.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Properties/AssemblyInfo.cs b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000000..158e937476
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Properties/AssemblyInfo.cs
@@ -0,0 +1,26 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using Android.App;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("KotlinxCoroutinesSample")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("KotlinxCoroutinesSample")]
+[assembly: AssemblyCopyright("Copyright © 2018")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: ComVisible(false)]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/AboutResources.txt b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/AboutResources.txt
new file mode 100644
index 0000000000..096447a90d
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/AboutResources.txt
@@ -0,0 +1,44 @@
+Images, layout descriptions, binary blobs and string dictionaries can be included
+in your application as resource files. Various Android APIs are designed to
+operate on the resource IDs instead of dealing with images, strings or binary blobs
+directly.
+
+For example, a sample Android app that contains a user interface layout (main.xml),
+an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
+would keep its resources in the "Resources" directory of the application:
+
+Resources/
+ drawable/
+ icon.png
+
+ layout/
+ main.xml
+
+ values/
+ strings.xml
+
+In order to get the build system to recognize Android resources, set the build action to
+"AndroidResource". The native Android APIs do not operate directly with filenames, but
+instead operate on resource IDs. When you compile an Android application that uses resources,
+the build system will package the resources for distribution and generate a class called "R"
+(this is an Android convention) that contains the tokens for each one of the resources
+included. For example, for the above Resources layout, this is what the R class would expose:
+
+public class R {
+ public class drawable {
+ public const int icon = 0x123;
+ }
+
+ public class layout {
+ public const int main = 0x456;
+ }
+
+ public class strings {
+ public const int first_string = 0xabc;
+ public const int second_string = 0xbcd;
+ }
+}
+
+You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main
+to reference the layout/main.xml file, or R.strings.first_string to reference the first
+string in the dictionary file values/strings.xml.
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/layout/activity_main.xml b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/layout/activity_main.xml
new file mode 100644
index 0000000000..a40a73fe6c
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/layout/activity_main.xml
@@ -0,0 +1,14 @@
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-anydpi-v26/ic_launcher.xml b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000000..c9ad5f98f1
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-anydpi-v26/ic_launcher_round.xml b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000000..c9ad5f98f1
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-hdpi/ic_launcher.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000000..2531cb31ef
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-hdpi/ic_launcher.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-hdpi/ic_launcher_foreground.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000000..7a859c2555
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-hdpi/ic_launcher_round.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..b8d35b3a1c
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-mdpi/ic_launcher.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000000..795ea7c005
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-mdpi/ic_launcher.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-mdpi/ic_launcher_foreground.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000000..a12b157f00
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-mdpi/ic_launcher_round.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..8f56909cdd
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xhdpi/ic_launcher.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000000..761cc91d90
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xhdpi/ic_launcher.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xhdpi/ic_launcher_foreground.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000000..e7d70a5e2d
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xhdpi/ic_launcher_round.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..9737d79c04
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxhdpi/ic_launcher.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000000..9133e31b43
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxhdpi/ic_launcher_foreground.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000000..73ccaa6a2b
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxhdpi/ic_launcher_round.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..c3ae5f5ccd
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxxhdpi/ic_launcher.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000000..d4fd714eed
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxxhdpi/ic_launcher_foreground.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000000..f6584afd4d
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxxhdpi/ic_launcher_round.png b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000000..ef89bd5215
Binary files /dev/null and b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/values/colors.xml b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/values/colors.xml
new file mode 100644
index 0000000000..bf1bf200f0
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #2c3e50
+ #1B3147
+ #3498db
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/values/ic_launcher_background.xml b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/values/ic_launcher_background.xml
new file mode 100644
index 0000000000..6ec24e6413
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+
+
+ #2C3E50
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/values/strings.xml b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/values/strings.xml
new file mode 100644
index 0000000000..2c67aea575
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/values/strings.xml
@@ -0,0 +1,5 @@
+
+
+ KotlinxCoroutinesSample
+ Settings
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/values/styles.xml b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/values/styles.xml
new file mode 100644
index 0000000000..dde52b817d
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSample/Resources/values/styles.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Additions/AboutAdditions.txt b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Additions/AboutAdditions.txt
new file mode 100644
index 0000000000..c24030768c
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Additions/AboutAdditions.txt
@@ -0,0 +1,48 @@
+Additions allow you to add arbitrary C# to the generated classes
+before they are compiled. This can be helpful for providing convenience
+methods or adding pure C# classes.
+
+== Adding Methods to Generated Classes ==
+
+Let's say the library being bound has a Rectangle class with a constructor
+that takes an x and y position, and a width and length size. It will look like
+this:
+
+public partial class Rectangle
+{
+ public Rectangle (int x, int y, int width, int height)
+ {
+ // JNI bindings
+ }
+}
+
+Imagine we want to add a constructor to this class that takes a Point and
+Size structure instead of 4 ints. We can add a new file called Rectangle.cs
+with a partial class containing our new method:
+
+public partial class Rectangle
+{
+ public Rectangle (Point location, Size size) :
+ this (location.X, location.Y, size.Width, size.Height)
+ {
+ }
+}
+
+At compile time, the additions class will be added to the generated class
+and the final assembly will a Rectangle class with both constructors.
+
+
+== Adding C# Classes ==
+
+Another thing that can be done is adding fully C# managed classes to the
+generated library. In the above example, let's assume that there isn't a
+Point class available in Java or our library. The one we create doesn't need
+to interact with Java, so we'll create it like a normal class in C#.
+
+By adding a Point.cs file with this class, it will end up in the binding library:
+
+public class Point
+{
+ public int X { get; set; }
+ public int Y { get; set; }
+}
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Jars/AboutJars.txt b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Jars/AboutJars.txt
new file mode 100644
index 0000000000..c359b62f40
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Jars/AboutJars.txt
@@ -0,0 +1,24 @@
+This directory is for Android .jars.
+
+There are 2 types of jars that are supported:
+
+== Input Jar ==
+
+This is the jar that bindings should be generated for.
+
+For example, if you were binding the Google Maps library, this would
+be Google's "maps.jar".
+
+Set the build action for these jars in the properties page to "InputJar".
+
+
+== Reference Jars ==
+
+These are jars that are referenced by the input jar. C# bindings will
+not be created for these jars. These jars will be used to resolve
+types used by the input jar.
+
+NOTE: Do not add "android.jar" as a reference jar. It will be added automatically
+based on the Target Framework selected.
+
+Set the build action for these jars in the properties page to "ReferenceJar".
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/KotlinxCoroutinesSampleLibrary.csproj b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/KotlinxCoroutinesSampleLibrary.csproj
new file mode 100644
index 0000000000..5b6e3e1353
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/KotlinxCoroutinesSampleLibrary.csproj
@@ -0,0 +1,69 @@
+
+
+
+ Debug
+ AnyCPU
+ 8.0.30703
+ 2.0
+ {7990AD17-9BDE-475D-94C9-E38595AB8EC2}
+ {10368E6C-D01B-4462-8E8B-01FC667A7035};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ {77efb91c-a7e9-4b0e-a7c5-31eeec3c6d46}
+ Library
+ Properties
+ KotlinxCoroutinesSampleLibrary
+ KotlinxCoroutinesSampleLibrary
+ 512
+ True
+ v9.0
+ class-parse
+ XAJavaInterop1
+ PackageReference
+
+
+ true
+ portable
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ portable
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Jars\kotlinxcoroutinessample-release.aar
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Properties/AssemblyInfo.cs b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000000..33cb64f890
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Properties/AssemblyInfo.cs
@@ -0,0 +1,26 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using Android.App;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("KotlinxCoroutinesSampleLibrary")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("KotlinxCoroutinesSampleLibrary")]
+[assembly: AssemblyCopyright("Copyright © 2018")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: ComVisible(false)]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Transforms/EnumFields.xml b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Transforms/EnumFields.xml
new file mode 100644
index 0000000000..e4a0f89376
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Transforms/EnumFields.xml
@@ -0,0 +1,15 @@
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Transforms/EnumMethods.xml b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Transforms/EnumMethods.xml
new file mode 100644
index 0000000000..6ff109bbd1
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Transforms/EnumMethods.xml
@@ -0,0 +1,14 @@
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Transforms/Metadata.xml b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Transforms/Metadata.xml
new file mode 100644
index 0000000000..d091d82b24
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/KotlinxCoroutinesSampleLibrary/Transforms/Metadata.xml
@@ -0,0 +1,10 @@
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/samples/nuget.config b/Android/KotlinXCoroutines/samples/nuget.config
new file mode 100644
index 0000000000..c29e35bef1
--- /dev/null
+++ b/Android/KotlinXCoroutines/samples/nuget.config
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Android/KotlinX.Coroutines.Android.csproj b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Android/KotlinX.Coroutines.Android.csproj
new file mode 100644
index 0000000000..3dd3113696
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Android/KotlinX.Coroutines.Android.csproj
@@ -0,0 +1,58 @@
+
+
+
+ MonoAndroid9.0
+ true
+ Xamarin.KotlinX.Coroutines.Android
+ False
+ True
+ Xamarin.KotlinX.Coroutines.Android
+ class-parse
+ XAJavaInterop1
+ ..\..\externals\kotlinx-coroutines-android\
+
+
+
+ Xamarin.KotlinX.Coroutines.Android
+ Xamarin.KotlinX.Coroutines.Android reference library for Xamarin.Android
+ Xamarin.Android bindings for KotlinX.Coroutines.Android
+ Microsoft
+ Microsoft
+ © Microsoft Corporation. All rights reserved.
+ https://go.microsoft.com/fwlink/?linkid=2083771
+ LICENSE.md
+ true
+ 1.4.1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Android/Transforms/Metadata.xml b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Android/Transforms/Metadata.xml
new file mode 100644
index 0000000000..2effe0abdf
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Android/Transforms/Metadata.xml
@@ -0,0 +1,6 @@
+
+
+ Xamarin.KotlinX.Coroutines.CoroutinesAndroid
+ Xamarin.KotlinX.Coroutines.MainCoroutineDispatcher
+
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Android/Xamarin.KotlinX.Coroutines.Android.targets b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Android/Xamarin.KotlinX.Coroutines.Android.targets
new file mode 100644
index 0000000000..995dc0a4a6
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Android/Xamarin.KotlinX.Coroutines.Android.targets
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core.Jvm/KotlinX.Coroutines.Core.Jvm.csproj b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core.Jvm/KotlinX.Coroutines.Core.Jvm.csproj
new file mode 100644
index 0000000000..6376440eae
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core.Jvm/KotlinX.Coroutines.Core.Jvm.csproj
@@ -0,0 +1,55 @@
+
+
+
+ MonoAndroid9.0
+ true
+ Xamarin.KotlinX.Coroutines.Core.Jvm
+ False
+ True
+ Xamarin.KotlinX.Coroutines.Core.Jvm
+ class-parse
+ XAJavaInterop1
+ ..\..\externals\kotlinx-coroutines-core-jvm\
+
+
+
+ Xamarin.KotlinX.Coroutines.Core.Jvm
+ Xamarin.KotlinX.Coroutines.Core.Jvm reference library for Xamarin.Android
+ Xamarin.Android bindings for KotlinX.Coroutines.Core
+ Microsoft
+ Microsoft
+ © Microsoft Corporation. All rights reserved.
+ https://go.microsoft.com/fwlink/?linkid=2083771
+ LICENSE.md
+ true
+ 1.4.1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core.Jvm/Transforms/Metadata.xml b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core.Jvm/Transforms/Metadata.xml
new file mode 100644
index 0000000000..31a83242c3
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core.Jvm/Transforms/Metadata.xml
@@ -0,0 +1,33 @@
+
+
+
+ Xamarin.KotlinX.Coroutines
+ Xamarin.KotlinX.Coroutines.Channels
+ Xamarin.KotlinX.Coroutines.Debug
+ Xamarin.KotlinX.Coroutines.Flow
+ Xamarin.KotlinX.Coroutines.Intrinsics
+ Xamarin.KotlinX.Coroutines.Scheduling
+ Xamarin.KotlinX.Coroutines.Selects
+ Xamarin.KotlinX.Coroutines.Sync
+ Xamarin.KotlinX.Coroutines.Test
+
+
+
+
+
+
+
+
+
+
+ Java.Lang.Object
+
+
+
+
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core.Jvm/Xamarin.KotlinX.Coroutines.Core.Jvm.targets b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core.Jvm/Xamarin.KotlinX.Coroutines.Core.Jvm.targets
new file mode 100644
index 0000000000..09f143e58e
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core.Jvm/Xamarin.KotlinX.Coroutines.Core.Jvm.targets
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core/KotlinX.Coroutines.Core.csproj b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core/KotlinX.Coroutines.Core.csproj
new file mode 100644
index 0000000000..b4e811a469
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core/KotlinX.Coroutines.Core.csproj
@@ -0,0 +1,55 @@
+
+
+
+ MonoAndroid9.0
+ true
+ Xamarin.KotlinX.Coroutines.Core
+ False
+ True
+ Xamarin.KotlinX.Coroutines.Core
+ class-parse
+ XAJavaInterop1
+ ..\..\externals\kotlinx-coroutines-core\
+
+
+
+ Xamarin.KotlinX.Coroutines.Core
+ Xamarin.KotlinX.Coroutines.Core reference library for Xamarin.Android
+ Xamarin.Android bindings for KotlinX.Coroutines.Core
+ Microsoft
+ Microsoft
+ © Microsoft Corporation. All rights reserved.
+ https://go.microsoft.com/fwlink/?linkid=2083771
+ LICENSE.md
+ true
+ 1.4.1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core/Transforms/Metadata.xml b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core/Transforms/Metadata.xml
new file mode 100644
index 0000000000..c6dcf02237
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core/Transforms/Metadata.xml
@@ -0,0 +1,28 @@
+
+
+ Xamarin.KotlinX.Coroutines
+ Xamarin.KotlinX.Coroutines.Channels
+ Xamarin.KotlinX.Coroutines.Debug
+ Xamarin.KotlinX.Coroutines.Flow
+ Xamarin.KotlinX.Coroutines.Intrinsics
+ Xamarin.KotlinX.Coroutines.Scheduling
+ Xamarin.KotlinX.Coroutines.Selects
+ Xamarin.KotlinX.Coroutines.Sync
+ Xamarin.KotlinX.Coroutines.Test
+
+
+
+
+
+
+
+
+
+
+ Java.Lang.Object
+
+
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core/Xamarin.KotlinX.Coroutines.Core.targets b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core/Xamarin.KotlinX.Coroutines.Core.targets
new file mode 100644
index 0000000000..5a866e3e54
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Core/Xamarin.KotlinX.Coroutines.Core.targets
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Jdk8/KotlinX.Coroutines.Jdk8.csproj b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Jdk8/KotlinX.Coroutines.Jdk8.csproj
new file mode 100644
index 0000000000..26a0e2c3e8
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Jdk8/KotlinX.Coroutines.Jdk8.csproj
@@ -0,0 +1,54 @@
+
+
+
+ MonoAndroid9.0
+ true
+ Xamarin.KotlinX.Coroutines.Jdk8
+ False
+ True
+ Xamarin.KotlinX.Coroutines.Jdk8
+ class-parse
+ XAJavaInterop1
+ ..\..\externals\kotlinx-coroutines-jdk8\
+
+
+
+ Xamarin.KotlinX.Coroutines.Jdk8
+ Xamarin.KotlinX.Coroutines.Jdk8 reference library for Xamarin.Android
+ Xamarin.Android bindings for KotlinX.Coroutines.Jdk8
+ Microsoft
+ Microsoft
+ © Microsoft Corporation. All rights reserved.
+ https://go.microsoft.com/fwlink/?linkid=2083771
+ LICENSE.md
+ true
+ 1.4.1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Jdk8/Transforms/Metadata.xml b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Jdk8/Transforms/Metadata.xml
new file mode 100644
index 0000000000..7f0addf6bd
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Jdk8/Transforms/Metadata.xml
@@ -0,0 +1,6 @@
+
+
+ Xamarin.KotlinX.Coroutines.Future
+ Xamarin.KotlinX.Coroutines.Stream
+ Xamarin.KotlinX.Coroutines.Time
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Jdk8/Xamarin.KotlinX.Coroutines.Jdk8.targets b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Jdk8/Xamarin.KotlinX.Coroutines.Jdk8.targets
new file mode 100644
index 0000000000..bec693657c
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Jdk8/Xamarin.KotlinX.Coroutines.Jdk8.targets
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Reactive/KotlinX.Coroutines.Reactive.csproj b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Reactive/KotlinX.Coroutines.Reactive.csproj
new file mode 100644
index 0000000000..fd91065e2c
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Reactive/KotlinX.Coroutines.Reactive.csproj
@@ -0,0 +1,55 @@
+
+
+
+ MonoAndroid9.0
+ true
+ Xamarin.KotlinX.Coroutines.Reactive
+ False
+ True
+ Xamarin.KotlinX.Coroutines.Reactive
+ class-parse
+ XAJavaInterop1
+ ..\..\externals\kotlinx-coroutines-reactive\
+
+
+
+ Xamarin.KotlinX.Coroutines.Reactive
+ KotlinX.Coroutines.Reactive reference library for Xamarin.Android
+ Xamarin.Android bindings for KotlinX.Coroutines.Reactive
+ Microsoft
+ Microsoft
+ © Microsoft Corporation. All rights reserved.
+ https://go.microsoft.com/fwlink/?linkid=2083771
+ LICENSE.md
+ true
+ 1.4.1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Reactive/Transforms/Metadata.xml b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Reactive/Transforms/Metadata.xml
new file mode 100644
index 0000000000..47cc0e98cb
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Reactive/Transforms/Metadata.xml
@@ -0,0 +1,4 @@
+
+
+ Xamarin.KotlinX.Coroutines.Reactive
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Reactive/Xamarin.KotlinX.Coroutines.Reactive.targets b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Reactive/Xamarin.KotlinX.Coroutines.Reactive.targets
new file mode 100644
index 0000000000..eaa159a9f4
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Reactive/Xamarin.KotlinX.Coroutines.Reactive.targets
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Rx2/KotlinX.Coroutines.Rx2.csproj b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Rx2/KotlinX.Coroutines.Rx2.csproj
new file mode 100644
index 0000000000..7c3543a95c
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Rx2/KotlinX.Coroutines.Rx2.csproj
@@ -0,0 +1,55 @@
+
+
+
+ MonoAndroid9.0
+ true
+ Xamarin.KotlinX.Coroutines.Rx2
+ False
+ True
+ Xamarin.KotlinX.Coroutines.Rx2
+ class-parse
+ XAJavaInterop1
+ ..\..\externals\kotlinx-coroutines-rx2\
+
+
+
+ Xamarin.KotlinX.Coroutines.Rx2
+ KotlinX.Coroutines.Rx2 reference library for Xamarin.Android
+ Xamarin.Android bindings for KotlinX.Coroutines.Rx2
+ Microsoft
+ Microsoft
+ © Microsoft Corporation. All rights reserved.
+ https://go.microsoft.com/fwlink/?linkid=2083771
+ LICENSE.md
+ true
+ 1.4.1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Rx2/Transforms/Metadata.xml b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Rx2/Transforms/Metadata.xml
new file mode 100644
index 0000000000..2a4d3ff6b5
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Rx2/Transforms/Metadata.xml
@@ -0,0 +1,4 @@
+
+
+ Xamarin.KotlinX.Coroutines.Rx2
+
diff --git a/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Rx2/Xamarin.KotlinX.Coroutines.Rx2.targets b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Rx2/Xamarin.KotlinX.Coroutines.Rx2.targets
new file mode 100644
index 0000000000..c7df9e5a7c
--- /dev/null
+++ b/Android/KotlinXCoroutines/source/KotlinX.Coroutines.Rx2/Xamarin.KotlinX.Coroutines.Rx2.targets
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index c1aeeecd7f..0db4680864 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -44,15 +44,15 @@ jobs:
preBuildSteps:
- pwsh: |
dotnet tool install --global boots
- boots https://aka.ms/xamarin-android-commercial-d16-8-macos
+ boots https://aka.ms/xamarin-android-commercial-d16-9-macos
condition: eq(variables['System.JobName'], 'macos')
- pwsh: |
dotnet tool install --global boots
- boots https://aka.ms/xamarin-android-commercial-d16-8-windows
+ boots https://aka.ms/xamarin-android-commercial-d16-9-windows
condition: eq(variables['System.JobName'], 'windows')
tools:
- - 'xamarin.androidbinderator.tool': '0.4.2'
- - 'xamarin.androidx.migration.tool': '1.0.7.1'
+ - 'xamarin.androidbinderator.tool': '0.4.3'
+ - 'xamarin.androidx.migration.tool': '1.0.8'
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- template: sign-artifacts/jobs/v2.yml@internal-templates
parameters:
diff --git a/manifest.yaml b/manifest.yaml
index 2014e31a17..b74fa871ba 100644
--- a/manifest.yaml
+++ b/manifest.yaml
@@ -352,6 +352,11 @@
TriggerPaths: [ Android/SquareOkHttp3LoggingInterceptor ]
MacBuildTargets: [ ci ]
WindowsBuildTargets: [ ci ]
+- Name: KotlinXCoroutines
+ BuildScript: ./Android/KotlinXCoroutines/build.cake
+ TriggerPaths: [ Android/KotlinXCoroutines ]
+ WindowsBuildTargets: [ ci ]
+ MacBuildTargets: [ ci ]
# will be XPlat in the future
- Name: TensorFlow.Lite