forked from dotnet/java-interop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dotnet#222 from atsushieno/reduce-android-dependen…
…cy-in-attributes-2 Reduce Android.* dependencies from this not-only-about-Android repo. We want the Java.Interop and xamarin-android repos to be distinct and not (overly) overlapping. Philosophically, the Java.Interop repo shouldn't use Xamarin.Android-specific names in public APIs. The `Java.Interop.NamingCustomAttributes` shared project doesn't comply with this philosophy, as it's full of Android-specific names. Better separate the Java.Interop & xamarin-android repo's by introducing a new `Java.Interop.IJniNameProviderAttribute` interface which is used by `JavaNativeTypeManager` to support determining the Java-side type name from a managed `System.Type` or Cecil `TypeDefinition` instance. This allows us to remove the Android- specific custom attributes from the Java.Interop repo.
- Loading branch information
Showing
16 changed files
with
71 additions
and
101 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
src/Java.Interop.NamingCustomAttributes/Android.App/InstrumentationAttribute.cs
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/Java.Interop.NamingCustomAttributes/Android.Content/BroadcastReceiverAttribute.cs
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/Java.Interop.NamingCustomAttributes/Android.Content/ContentProviderAttribute.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/Java.Interop.NamingCustomAttributes/Java.Interop/IJniNameProviderAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
namespace Java.Interop | ||
{ | ||
public interface IJniNameProviderAttribute | ||
{ | ||
string Name { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...butes/Android.App/ApplicationAttribute.cs → .../Test/Android.App/ApplicationAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
using System; | ||
|
||
namespace Android.App { | ||
sealed partial class ApplicationAttribute : Attribute { | ||
sealed partial class ApplicationAttribute : Attribute, Java.Interop.IJniNameProviderAttribute { | ||
public string Name {get; set;} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Java.Interop.Tools.JavaCallableWrappers/Test/Android.App/InstrumentationAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
|
||
namespace Android.App { | ||
sealed partial class InstrumentationAttribute : Attribute, Java.Interop.IJniNameProviderAttribute { | ||
public string Name { get; set; } | ||
} | ||
} | ||
|
2 changes: 1 addition & 1 deletion
2
...ttributes/Android.App/ServiceAttribute.cs → ...pers/Test/Android.App/ServiceAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
using System; | ||
|
||
namespace Android.App { | ||
sealed partial class ServiceAttribute : Attribute { | ||
sealed partial class ServiceAttribute : Attribute, Java.Interop.IJniNameProviderAttribute { | ||
public string Name {get; set;} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...ava.Interop.Tools.JavaCallableWrappers/Test/Android.Content/BroadcastReceiverAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
|
||
namespace Android.Content { | ||
|
||
partial class BroadcastReceiverAttribute : Attribute, Java.Interop.IJniNameProviderAttribute { | ||
public string Name { get; set; } | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Java.Interop.Tools.JavaCallableWrappers/Test/Android.Content/ContentProviderAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
|
||
namespace Android.Content { | ||
|
||
partial class ContentProviderAttribute : Attribute, Java.Interop.IJniNameProviderAttribute { | ||
public string Name { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters