Граф коммитов

379 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Peppers c237e21b63 [build] changes to fix the CI
Context: https://travis-ci.org/mono/Embeddinator-4000/jobs/471012684
Context: https://travis-ci.org/mono/Embeddinator-4000/jobs/471026456
Context: https://travis-ci.org/mono/Embeddinator-4000/jobs/471037351

First issue we are hitting is a missing version of Cake on MyGet:

    Unable to find version '0.23.0' of package 'Cake'.
      https://www.myget.org/F/cake/api/v3/index.json: Package 'Cake.0.23.0' is not found on source 'https://www.myget.org/F/cake/api/v3/index.json'.

To fix this:

- Let's remove `MyGet.config` and just use NuGet
- Update Cake to 0.31, I recently used that version on another project

Next issue is that the build will not work using JDK 10:

    Compiling binding code...
        Invoking: /usr/libexec/java_home
            /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
        Invoking: /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/bin/javac
    ...
    Fatal Error: Unable to find package java.lang in classpath or bootclasspath

To fix this we should use the `-v 1.8` switch on every call to `java_home`.

Next issue is that we aren't specifying a version with the `#tool`
directive:

    The 'tool' directive is attempting to install the 'NUnit.ConsoleRunner' package
    without specifying a package version number.

After that we were hitting issues where Xamarin.iOS\Mac\Mono were having trouble being provisioned, so I bumped them all to current stable.

Then a few test fixes, including some from https://github.com/mono/Embeddinator-4000/pull/714 originally.

This fixes Jenkins and part fixes the other builds. @jonathanpeppers will look at those later
2018-12-21 18:01:16 -05:00
Jonathan Peppers d697cdfca5
[windows] .gitattributes for proper line endings settings (#667)
Context: https://help.github.com/articles/dealing-with-line-endings/

If you work on this repo on Windows, you quickly see the `.gitattributes` are not setup right for development on Windows.

1. Certain files had mixed line endings, which causes Visual Studio to prompt to adjust.

2. Running `premake` yields Windows line endings on Windows, and so every `*.csproj` file appears to have changes.

`xamarin-android` has a well-used `.gitattributes` file, so I used it as a starting point and added an entry for `*.cake` files.

The way it works (as I understand it):
- `git` stores everything with unix line endings
- on checkout, clients convert the line endings according to settings in the `.gitattributes` file

So, for example:
- All `*.csproj` files will have Windows line endings, as Visual Studio expects (both Mac and Windows)
- `*.cs` files will have Windows line endings on Windows, and unix line endings on Mac
2018-05-04 17:06:07 -05:00
Jonathan Peppers d5fed87456
[build] Android API 26, setup Windows builds on Jenkins (#664)
- `Download-Xamarin-Android` needs to "copy" from temp, since the bots have temp in `D:\` and you can't do a "move" operation across drives
- Added a `Jenkins` cake target to replace `AppVeyor`
- Switch to Android API Level 26 and `TargetFrameworkVersion` v8.0 by default. Jenkins PR bots did not have an option to provision API 24.
- Updated to Android Support Libs 26.x

Changes for latest Android Studio + Windows 
- Updated `.gitignore`
- Removed files we don't need to check into source control
- Changed option for max heap size that was erroring on Windows
- Use `--stacktrace` option when running gradle, so we get error messages
- Updated Android test project to API 26, and support lib 26.x

TODO in future PRs:
- Drop everything that says "AppVeyor"
2018-04-27 15:10:46 -05:00
Chris Hamons ee11bba820
Restored: missing code for extension support on Mac + bitcode for iOS… (#656)
- Restored: partial missing of extension support + bitcode enabling for iOS
- Fix quoting issue somewhat unrelated to original PR
- [cake] Use DeleteDirectories to work around cake bug https://github.com/cake-build/cake/issues/2135
2018-04-24 09:08:50 -05:00
Chris Hamons 6017d8bd00
Add technical documents and improve readme (#646)
- https://github.com/mono/Embeddinator-4000/issues/160
- Contributing guide "borrowed" from xamarin-macios
2018-04-10 14:43:08 -05:00
Chris Hamons 069e584b27
Add tests and documentation for ObjC exception PR (#640) 2018-04-02 10:17:24 -05:00
Chris Hamons c60d3c5589
[ObjC] Correctly marshall arrays of structrs (#641)
- https://github.com/mono/Embeddinator-4000/issues/636
- https://github.com/mono/Embeddinator-4000/issues/631
- Unlike single structs, which are boxed when we ask for them, arrays
must be handled special.
- We use mono_array_addr_with_size to get a pointer to the specific
element and then mono_value_box to box.
- This was discussed in https://github.com/mono/mono/issues/7808
2018-04-02 10:15:46 -05:00
Chris Hamons 3f77876da2
[objc] Fix issue blocking all F# libraries (#632)
- https://github.com/mono/Embeddinator-4000/issues/549
- Refactor ManagedTest to extract test info to pave way to F# tests
- Parts of the fsharp test https://github.com/mono/Embeddinator-4000/issues/631 / https://github.com/mono/Embeddinator-4000/issues/630 are failing for unknown reasons, possibly same as https://github.com/mono/Embeddinator-4000/issues/636
2018-03-27 10:20:41 -05:00
Chris Hamons 26da47ecbb
Add objc versions of existing C/Java tests that were missed (#634)
- Add abstract, array, keywords, and builtin missing tests
2018-03-23 10:51:12 -05:00
Jonathan Peppers 02710d0d15
[tests] NetStandard project wasn't referencing shared project (#625)
Relates to #518, but everything appeared to work on my Windows machine
2018-03-20 09:43:39 -05:00
Chris Hamons c14cd916e6 Merge branch 'master' into merge-objc 2018-03-16 10:02:10 -05:00
Sebastien Pouliot 4c111776a5 [objc] Support API with arrays of enums. Fix #561 (#618)
This is not optimal, since an `NSArray` of enums can't be done
without turning everything into `NSNumber`.

However the current code does not compile and that's worse that
an suboptimal API.

Fix https://github.com/mono/Embeddinator-4000/issues/561
2018-03-14 16:21:07 -05:00
Jonathan Peppers fdf7296329
[fsharp] update test projects (#617)
Test projects failing to build on Linux on TravisCI, perhaps this will
fix it? This seems to be happening since #616, but I think it is a change on
the TravisCI build bots.

Changes:
- FSharp Android project shouldn't have `AndroidUseLatestPlatformSdk` on
- We don't need System.ValueTuple
- The `Build-C-Tests` Cake task should also copy `FSharp.Core.dll` as using
the system one doesn't seem to be working reliably on TravisCI
2018-03-12 12:51:30 -05:00
Sebastien Pouliot 704d24bea8 [objc] Fix local variable names used for parameter conversion. Fix #594 (#613)
reference:
https://github.com/mono/Embeddinator-4000/issues/594
2018-03-09 09:53:46 -06:00
Chris Hamons a0d694d083 Remove \ at end of ALL_MANAGED_DLLS that was breaking builds by blapping else 2018-03-05 14:07:43 -06:00
Chris Hamons fc3bf56118 Handle rename of generator.sln in tests/objcgentest/Makefile 2018-03-02 12:55:33 -06:00
Chris Hamons 655b5e5b75 Remove dump on ManagedTest failure as it is not consistently useful 2018-03-02 10:21:49 -06:00
Chris Hamons ca76df2669 Add basic logging infrastructure to objcgen 2018-02-28 12:50:19 -06:00
Chris Hamons 35e4aa0cc3 Merge branch 'master' into objc-master-merge 2018-02-28 11:35:36 -06:00
Manuel de la Pena bddffe34cc
[Objc] Update the name of the TV simulator to run the tests. Fixes #577 (#578) 2018-02-12 12:14:22 +01:00
Manuel de la Pena b4cdfcee7e
Ensure that no internet connection is needed. (#551)
* Ensure that no internet connection is needed.
2018-02-12 10:44:28 +01:00
Manuel de la Pena 82064f8e59
[Objc] Filter devices that are not availabe for debug. Fixes #575 (#576) 2018-02-12 10:43:47 +01:00
Jonathan Peppers 59220f07e4
Merge pull request #584 from jonathanpeppers/mscorlib-duplicates
[android] Improvements to Resource.designer.dll generation
2018-01-27 15:32:59 -06:00
Joao Matos e380954abc [java] Fixed generation conflict with properties and methods starting with get/set.
Fixes https://github.com/mono/Embeddinator-4000/issues/580.
2018-01-26 10:20:53 +00:00
Jonathan Peppers dad7331d39 Improvements to Resource.designer.dll generation
Fixes #582

- Added a test case to repro #582
- Improved upon `System.CodeDom` logic, to use more specific type names
via `CodeTypeReference` instead of strings
- no longer need `using System;`
- Improved upon the number of assemblies that `Resource.designer.dll`
references. We only need to reference input assemblies that contain
`Resource` classes generated by Xamarin.Android.
- Updated approval tests to match the new generated code
2018-01-25 23:42:48 -06:00
Joao Matos 1e5ca322d0 [java] Fixes Java generation for primitive pointer types.
Fixes https://github.com/mono/Embeddinator-4000/issues/571.
2018-01-25 23:23:28 +00:00
Joao Matos 06bc9245de Fixed Java generation for long literals in enums.
Fixes https://github.com/mono/Embeddinator-4000/issues/573.
2018-01-25 21:40:46 +00:00
João Matos c3b2acd34e
Update README.md
Fixes https://github.com/mono/Embeddinator-4000/issues/565
2018-01-15 12:16:17 +00:00
João Matos 7b184577e0
Merge pull request #552 from jonathanpeppers/gradle-update-and-tests
[android] latest Android Studio test project updates
2017-11-29 16:50:42 +00:00
Joao Matos fd9918b207 [tests] Fixed approval tests due to java.lang.String changes. 2017-11-29 15:03:43 +00:00
Jonathan Peppers ce8f6d6046 [android] new test case
Added a test case as per #546
2017-11-29 08:22:47 -06:00
Jonathan Peppers 7fbd31ac7f [android] latest Android Studio test project updates
- Prompted to update gradle to 3.0.1
- Fixed warnings about deprecated `compile` and `androidTestCompile`
2017-11-29 08:21:20 -06:00
Joao Matos 93d9804c90 [c] Ignore unsupported types when checking for array types.
Fixes https://github.com/mono/Embeddinator-4000/issues/545.
2017-11-28 15:42:12 +00:00
Joao Matos accc39e30b [java] Fixes for String type mismatches and invalid toString() overloads.
Fixes https://github.com/mono/Embeddinator-4000/issues/550.
2017-11-28 14:22:25 +00:00
Joao Matos 9d34d722b0 [java] Fixed a bug generating a method name getClass() in Java. 2017-11-28 13:24:52 +00:00
Joao Matos 70624492fb [java] Check and rename forbidden declaration names (getClass() for now). 2017-11-24 17:44:25 +00:00
Joao Matos 46e47ca2c8 [java] Rename getters/setters to Java convention on generation. 2017-11-24 17:43:56 +00:00
Joao Matos 9d405308cc [tests] Improved Java testing to check method overload support. 2017-11-24 14:35:16 +00:00
Joao Matos b4ffd58235 [tests] Improved testing for declaration naming conflicts. 2017-11-24 14:35:03 +00:00
Jonathan Peppers 64a3c23ead [Android] add MonoPackageManager.setContext
As reported in #530, there are some cases where libraries use
`MonoPackageManager.setContext`, which has a “vestigial”
implementation/comment in Xamarin.Android.

I added this method and a couple quick tests for future validation.
2017-10-30 10:24:36 -05:00
Joao Matos 4e90e6bdcc Bootstrap the Swift generator backend. 2017-10-28 20:06:09 +01:00
Jonathan Peppers 116505eb23 Updates for latest Android Studio
- Updated Android Support libraries from NuGet
- Updated documentation mentioning Android Studio 3.0 as beta
2017-10-26 10:28:07 -05:00
Jonathan Peppers 3d311e60eb Changes for updated Xamarin.Android.Tools
- Include source for MonoDroidSdk in external/MonoDroid
- Setup these files for remake
- Updated code to use XamarinAndroid.AndroidSdk property
2017-10-24 12:40:26 -05:00
Joao Matos e7bc5fa0e8 [build] Added Mono.TextTransform as Nuget dependency of managed test project. 2017-09-04 14:04:51 +01:00
Joao Matos cb04ca0a84 [build] Remove project build-time Nuget install of Mono.TextTemplate. 2017-09-01 00:48:36 +01:00
João Matos 60be6829ee Merge pull request #500 from atsushieno/fix-linux-execpath-more
Fix more Linux toolchain paths and compilation support.
2017-08-30 21:51:30 +01:00
Atsushi Eno 9a5df9e118 Fix more Linux toolchain paths and compilation support. 2017-08-31 04:00:37 +09:00
João Matos c89564fe52 Merge pull request #497 from realvictorprm/class-type-arrays
Adding support for class type arrays, fix #496
2017-08-30 18:29:11 +01:00
realvictorprm ab29f5272d Adding fix and test for value types.
Signed-off-by: realvictorprm <mueller.vpr@gmail.com>
2017-08-30 14:52:48 +02:00
João Matos c4a9a2e674 Merge pull request #490 from tritao/java-test-runner
[java] Improvements and fixes to desktop Java support
2017-08-29 23:44:41 +01:00