Skip to content

Commit

Permalink
[plugin/ads] Add option to include AD_ID permission on android
Browse files Browse the repository at this point in the history
[version] 2022.8
  • Loading branch information
hgy29 committed Aug 10, 2022
1 parent 3562bac commit 8bda698
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libgideros/gideros.h
Expand Up @@ -23,7 +23,7 @@
#endif

#ifndef GIDEROS_VERSION
#define GIDEROS_VERSION "2022.6"
#define GIDEROS_VERSION "2022.8"
#endif

#endif
7 changes: 7 additions & 0 deletions plugins/ads/ads.gplugin
Expand Up @@ -3,6 +3,7 @@
description="Generic Ads interface">
<property name="gmsVersion" type="string" title="Google Play Services version" description="" default="16.0.0" />
<property name="gmsAppId" type="string" title="Application Id" description="Application Id for Google Play Services" default="" />
<property name="adsNeedId" type="boolean" title="Advertising ID is required (Android 13+)"/>
<!--
<property name="adsFwAdcolony" type="boolean" title="Enable Adcolony support (Android,iOS)"/>
-->
Expand Down Expand Up @@ -47,6 +48,12 @@
<append orig="//GIDEROS-EXTERNAL-CLASS//" by=" &quot;com.giderosmobile.android.plugins.ads.Ads&quot;,"/>
</replacelist>
</template>
<if condition="[[[plugin.adsNeedId]]]">
<lua>
local ap=require("Tools/export_android")
ap.usePermission("com.google.android.gms.permission.AD_ID")
</lua>
</if>
<set key="local.adsfwd" value="app/src/main/java/com/giderosmobile/android/plugins/ads/frameworks"/>
<set key="local.adsfws" value="[[[sys.pluginDir]]]/bin/Android/src/com/giderosmobile/android/plugins/ads/frameworks"/>
<mkdir>[[[local.adsfwd]]]</mkdir>
Expand Down

0 comments on commit 8bda698

Please sign in to comment.