Skip to content

Commit

Permalink
Merge pull request #709 from xamarin/fix-issue-673-Xamarin.Google.And…
Browse files Browse the repository at this point in the history
…roid.Play.Core-cannot-implement-IInstallStateUpdatedListener

Fix issue 673 xamarin.google.android.play.core cannot implement i install state updated listener
  • Loading branch information
moljac committed Nov 10, 2022
2 parents 40778fd + 19d10b2 commit 5590433
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@
"groupId": "com.google.android.play",
"artifactId": "core",
"version": "1.10.3",
"nugetVersion": "1.10.3.2",
"nugetVersion": "1.10.3.3",
"nugetId": "Xamarin.Google.Android.Play.Core",
"dependencyOnly": false
},
Expand Down
4 changes: 2 additions & 2 deletions source/com.google.android.play/core.extensions/app/.project
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
</natures>
<filteredResources>
<filter>
<id>1620209182907</id>
<id>1667565327392</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
</natures>
<filteredResources>
<filter>
<id>0</id>
<id>1667565327400</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
Expand Down
24 changes: 24 additions & 0 deletions source/com.google.android.play/core/Transforms/Metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,28 @@
state
</attr>

<!--
https://github.com/PatGet/XamarinPlayCoreUpdater/pull/20/
Removing StateUpdatedListener implementation from InstallStateUpdatedListener interface
and making proper onStateUpdate method mapping where StateT is InstallState
-->
<remove-node
path="/api/package[@name='com.google.android.play.core.install']/interface[@name='InstallStateUpdatedListener']/implements[contains(@name,'StateUpdatedListener')]"
/>
<add-node
path="/api/package[@name='com.google.android.play.core.install']/interface[@name='InstallStateUpdatedListener']"
>
<method
visibility="public" static="false" abstract="true" return="void" name="onStateUpdate"
deprecated="not deprecated" final="false" bridge="false" native="false"
synchronized="false" synthetic="false"
>
<parameter
type="com.google.android.play.core.install.InstallState"
name="state"
/>
</method>
</add-node>

</metadata>

0 comments on commit 5590433

Please sign in to comment.