{"_id":"@appier/advid-expo-plugin","_rev":"10-c05ade2946872ce484cde81073a4276a","name":"@appier/advid-expo-plugin","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@appier/advid-expo-plugin","version":"1.0.0","author":{"name":"jh.lin"},"license":"ISC","_id":"@appier/advid-expo-plugin@1.0.0","maintainers":[{"name":"jh.lin","email":"jh.lin@appier.com"},{"name":"yujiosaka-appier","email":"yuji.isobe@appier.com"},{"name":"jimmyhsiao","email":"jimmy.hsiao@appier.com"},{"name":"cysu","email":"chiayung@appier.com"},{"name":"mrorz","email":"johnsonliang7@gmail.com"},{"name":"anita.chen.appier","email":"anita.chen@appier.com"},{"name":"shivi_appier","email":"shiv.raj@appier.com"},{"name":"happiercedric","email":"cedric.shih@appier.com"}],"homepage":"https://bitbucket.org/plaxieappier/appier-advid-expo-plugin#readme","bugs":{"url":"https://bitbucket.org/plaxieappier/appier-advid-expo-plugin/issues"},"dist":{"shasum":"998bf603196e03148bb198dce98cba3527df291d","tarball":"https://registry.npmjs.org/@appier/advid-expo-plugin/-/advid-expo-plugin-1.0.0.tgz","fileCount":10,"integrity":"sha512-Y4RPkYjyqmBhnPuFLko9vwtNPW7rquSRdwGX6yx15Y8be2Fszh5Bhuy16NdVjAEA9wLlu5ghpQQuJxH/oe82pw==","signatures":[{"sig":"MEUCIQCMO7O6BpPzIV1wRgzoxUTTQS2CZ/Z+TBZ2UUPWZb38KgIgE2FwDJOaewKPexXB2eGC38L5ceQSfVESfmPx8iTmXbg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIoaKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/Wg/8CFEcdNlUNTioulDIs/qY94lU/jIX3tPtahvicpCcAwClqAg/\r\nqx2Rgcl8fnfcuza2Ux0BErPh8S0h67EWN5swRaapKWp8f36dHEIySaYhRkNr\r\nVM6D1iEnFYC6BvMx8bDIsJYDmcHPQlRcRKN9Cc+M88qHImL+CbhSwPvizvz7\r\nzn+wE4sxv88HDiQV8mS5ZjmVaZ88EtviTUbUN6u26EMUs9Yo6bRpYvVA1x/d\r\nUvH52zFZmj6bJb7nQDbhME2dcwSyCxIHL6QlFVF641ohoV70on5N7WAIf8mT\r\nwgI9/N2g+R0aW6tU/QfGnkpPZ5mgsvI58O2DvU8ZwtukiztnMU+HOyhmlHcI\r\nVOOAR7Rt64NlbimOzVFxj+TeXN2reOCYU6jKWeJMnNtRCWLcPJl4jv3knt/u\r\ndGzqtEpDWF9jCZeQFZzSRYO/NXf21oIuZkTvCKYbAsqOT3KgppGwjL2bkfMw\r\n1aPpkeh/p0GsqN9Gk1kY4bEoyBnNzt7+VYRLrQXD1K6dBsHgQIirOqod/hsJ\r\n5D0POj4JEBhoA3gMy6vjKIeQ+JsfcqaVF39mGgTPgmPb5f7rvQBKNpjdDaoy\r\nmzvxBs1lEU2nvw8Z9m2G3yesxsWXymVv7JDzMgornxtrWcbTZydRkkJG2JbV\r\nDn8AoU3UfUAHvdC0GJmjz6NS/HHrP2/9ULA=\r\n=LVL7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"app.plugin.js","gitHead":"3fea312d4bd9773450d5a047b45adcbae9db1e7a","scripts":{"build":"expo-module build","clean":"expo-module clean","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"jh.lin","email":"jh.lin@appier.com"},"repository":{"url":"git+ssh://git@bitbucket.org/plaxieappier/appier-advid-expo-plugin.git","type":"git"},"_npmVersion":"8.15.0","description":"A expo plugin for retrieving advertising id(AAID) on Android.","directories":{},"_nodeVersion":"16.17.0","dependencies":{"@expo/config-plugins":"^5.0.1"},"_hasShrinkwrap":false,"devDependencies":{"@expo/config-types":"^46.0.2","expo-module-scripts":"^2.1.1"},"_npmOperationalInternal":{"tmp":"tmp/advid-expo-plugin_1.0.0_1663207050371_0.3227111524642343","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@appier/advid-expo-plugin","version":"1.0.1","author":{"name":"jh.lin"},"license":"ISC","_id":"@appier/advid-expo-plugin@1.0.1","maintainers":[{"name":"jh.lin","email":"jh.lin@appier.com"},{"name":"yujiosaka-appier","email":"yuji.isobe@appier.com"},{"name":"jimmyhsiao","email":"jimmy.hsiao@appier.com"},{"name":"cysu","email":"chiayung@appier.com"},{"name":"mrorz","email":"johnsonliang7@gmail.com"},{"name":"anita.chen.appier","email":"anita.chen@appier.com"},{"name":"shivi_appier","email":"shiv.raj@appier.com"},{"name":"happiercedric","email":"cedric.shih@appier.com"}],"homepage":"https://bitbucket.org/plaxieappier/appier-advid-expo-plugin#readme","bugs":{"url":"https://bitbucket.org/plaxieappier/appier-advid-expo-plugin/issues"},"dist":{"shasum":"63c0914148d828338d997d1ddd6a52d830017a7a","tarball":"https://registry.npmjs.org/@appier/advid-expo-plugin/-/advid-expo-plugin-1.0.1.tgz","fileCount":10,"integrity":"sha512-s6C471oKI1p2sX0Ug2h1KktQ7ixb+a0+SvXpH5zCS39MDOX5vko3tnIpZVHlsK+liBUk7gQki3/6F0LmvN2j0w==","signatures":[{"sig":"MEYCIQC2yEANdAwHUdmj6++h1TtFQvza00MG/8KiGWpdR9K9wwIhAIcZRxFahhk8SrCCASgCieX68UKo9eS8SAcuesvApixX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15166,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKDbxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNYBAApI3ivRPZvoJf1c7yQql4orLkte0jzvQcyvnV4/lU2ppUtb3w\r\ngTj0MxrDIm3OmpfOAfmeydoIH6L4Xv+VFjzGcMD8HvTFaI9/xQA3u6YEUvtv\r\n2/ooQbK/EcGNUwv1aKGxJIpOcpXKwfCX3UPbn7qHyUnEXTMMUCU/LTh9NeGm\r\nr33FZDceKW6KpyknGwy8fnQtefs4N7xddpvHl10C85d97T2Woim3Oh0CpR2b\r\nAI6SCK7/EXJisZYH2CO+PaYAHhkhC2TqQ8daC35Kfh35UKOYk+pocXET89R9\r\nZwf+9+xROhPXLuifvnMTO2vutNCZoCwGokE5M3+kMszr9tndSZko5oaFH6JV\r\nEjBaTqN5ki1McfB993G25QmyGySAzUzcgpLuWUgy3iXrN3eOcTO03x2Jm/bd\r\nWvABritEQUdjQUz1sqUSX+b2vo0Lu7bU/9m1d3cSEd306v0B+J01G6HhIggO\r\niVcVMWyOVLLwZbmAxrp3ogHSK3XQdmsBXNHNvaqClh4CA8NhDHqaWBOtZhdX\r\nj62bxEbilWmsHjcTD9natwwYzgRC/PMmxPd3kp31JKbOZkPX7IEedspeO1i7\r\n1OaBhh2+m2ek3UXKMNFufzeBK4U70Yln21y3szR1VzEdGz1NabpwuXMBDQPA\r\ni6IqEH8/Do19J2MVcWc7N6zE5Qjz7xAosKk=\r\n=cw6n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"app.plugin.js","gitHead":"a008851256b3a013ce362bf17119eb7cd34f9024","scripts":{"build":"expo-module build","clean":"expo-module clean","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"jh.lin","email":"jh.lin@appier.com"},"repository":{"url":"git+ssh://git@bitbucket.org/plaxieappier/appier-advid-expo-plugin.git","type":"git"},"_npmVersion":"8.15.0","description":"A expo plugin for retrieving advertising id(AAID) on Android.","directories":{},"_nodeVersion":"16.17.0","dependencies":{"@expo/config-plugins":"^5.0.1"},"_hasShrinkwrap":false,"devDependencies":{"@expo/config-types":"^46.0.2","expo-module-scripts":"^2.1.1"},"_npmOperationalInternal":{"tmp":"tmp/advid-expo-plugin_1.0.1_1663579889805_0.16025446393264464","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-09-15T01:57:30.236Z","modified":"2026-07-31T09:40:27.259Z","1.0.0":"2022-09-15T01:57:30.541Z","1.0.1":"2022-09-19T09:31:29.920Z"},"bugs":{"url":"https://bitbucket.org/plaxieappier/appier-advid-expo-plugin/issues"},"author":{"name":"jh.lin"},"license":"ISC","homepage":"https://bitbucket.org/plaxieappier/appier-advid-expo-plugin#readme","repository":{"url":"git+ssh://git@bitbucket.org/plaxieappier/appier-advid-expo-plugin.git","type":"git"},"description":"A expo plugin for retrieving advertising id(AAID) on Android.","maintainers":[{"email":"chiayung@appier.com","name":"cysu"},{"email":"johnsonliang7@gmail.com","name":"mrorz"},{"email":"anita.chen@appier.com","name":"anita.chen.appier"},{"email":"cedric.shih@appier.com","name":"happiercedric"},{"email":"jimmy.hsiao@appier.com","name":"jimmyhsiao"},{"email":"yuanhung.huang@appier.com","name":"yhhuang"},{"email":"derek.chiu@appier.com","name":"derek.chiu"},{"email":"michael.chang@appier.com","name":"michael.chang.appier"}],"readme":"\n# appier-advid-expo-plugin\n\n## Overview\nThis plugin is an [Expo Config plugin](https://docs.expo.dev/guides/config-plugins/). It extends the Expo config to allow customizing the prebuild phase of managed workflow build which means you don't need to eject to a bare workflow. The purpose of this plugin is to retrieve advertising IDs on Android.\n\n## Install\n```\n expo install appier-advid-expo-plugin\n```\n## Configuration\n Using `expo install appier-advid-expo-plugin` will automatically add the plugin to the [plugin array](https://docs.expo.dev/versions/latest/config/app/#plugins). Please make sure it's the first plugin in the array.\n### app.json\n```\n {\n\t \"plugins\": [\n\t\t\t[\"appier-advid-expo-plugin\", { \"targetAndroid12\": true }]\n\t ]\n }\n```\n### plugin props\nYou can pass props to configure the plugin according to your environment.\n\n| Prop Name |  | Description |\n| -- | -- | -- |\n| targetAndroid12 | optional | (boolean) If your devices target Android 12 or above, it's necessary to set this prop to `true` to ensure the plugin works. This would be `false` if `targetAndroid12` doesn't provide. |\n\n### EAS (Expo Application Services)\nTo work with managed workflow, [EAS](https://expo.dev/eas) is necessary for you to build your project. Follow the [document](https://docs.expo.dev/build/introduction/) to set up your app. Once you've setup, there should be a `eas.json` and you are able to build your app by\n ```\n eas build --platform android\n ```\n\n## Usage\nMake sure you've already started your custom development client to serve your build from EAS. For more info, please see this [document](https://docs.expo.dev/eas-update/expo-dev-client/).  Basically, the plugin gives you the ability to use our custom native modules call `AdvertisingIdModule`. \n\n| Method Name |  return | Description|\n| -- | -- | -- |\n| getAdId | promise  | Get Android Advertising Id\n\n\nYou can then access the module and get the AAID by:\n#### App.js\n```\nconst { AdvertisingIdModule } = NativeModules;\nexport default App = () => {\n\tuseEffect(()=> {\n\t\tconst getId = async () => {\n\t\t\tconst id = await AdvertisingIdModule.getAdId();\n\t\t\tconsole.log(\"id =\", id);\n\t\t}\n\t\tgetId();\n\t}, []}\n\t...\n}\n```\n","readmeFilename":"README.md"}