expo-dynamic-app-icon
expo-dynamic-app-icon copied to clipboard
Expo SDK 50 & Android deep link fix
Updating android build.gradle to match one of a newly created module, which allows for building with Expo SDK 50.
I'm unsure if any other changes are required, however, I have tested in my own project using SDK 50, and I can confirm it works for me.
Can also confirm this PR fixes my android build issue on SDK 50.
I have modified the android plugin to take the intent filters from the main activity, instead of just creating the main intent filter. This copies any custom url schemas and share intents into the new activity aliases.
If any other plugins modify the main activity intent filters, we need to ensure that this plugin is listed FIRST in the plugins array.
Closes #15 as well
anyone know why this package dosent work on android anymore? Expo SDK 50, it works fine on iOS
@outsung Please merge this
can anyone help with how to add this into a project for EAS Build, whenn running eas build it grabs the package from NPM and as such the main package not this fork, how do I point it to this forked patch so I can build for android?
can anyone help with how to add this into a project for EAS Build, whenn running eas build it grabs the package from NPM and as such the main package not this fork, how do I point it to this forked patch so I can build for android?
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon",
Please do your own testing as I have modified a few things in this PR.
I have added a new 'platforms' prop that can be provided in the config setup. I personally did not want Android support as I wanted to use adaptive icons instead. usage as follows:
[
"expo-dynamic-app-icon",
{
"light": {
"image": "./src/assets/icons/icon_1024x1024.png",
"prerendered": true,
"platforms": ["ios"]
},
"dark": {
"image": "./src/assets/icons/icon_dark_1024x1024.png",
"prerendered": true,
"platforms": ["ios"]
}
}
],
can anyone help with how to add this into a project for EAS Build, whenn running eas build it grabs the package from NPM and as such the main package not this fork, how do I point it to this forked patch so I can build for android?
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon",Please do your own testing as I have modified a few things in this PR.
I have added a new 'platforms' prop that can be provided in the config setup. I personally did not want Android support as I wanted to use adaptive icons instead. usage as follows:
[ "expo-dynamic-app-icon", { "light": { "image": "./src/assets/icons/icon_1024x1024.png", "prerendered": true, "platforms": ["ios"] }, "dark": { "image": "./src/assets/icons/icon_dark_1024x1024.png", "prerendered": true, "platforms": ["ios"] } } ],
please does this library now work properly for android? android build still fails for my app, using Expo SDK 50
can anyone help with how to add this into a project for EAS Build, whenn running eas build it grabs the package from NPM and as such the main package not this fork, how do I point it to this forked patch so I can build for android?
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon",Please do your own testing as I have modified a few things in this PR.
I have added a new 'platforms' prop that can be provided in the config setup. I personally did not want Android support as I wanted to use adaptive icons instead. usage as follows:
[ "expo-dynamic-app-icon", { "light": { "image": "./src/assets/icons/icon_1024x1024.png", "prerendered": true, "platforms": ["ios"] }, "dark": { "image": "./src/assets/icons/icon_dark_1024x1024.png", "prerendered": true, "platforms": ["ios"] } } ],
Thank you, wasnt sure how to link it, will try this and test it myself and update, appreciate the switft reply and help
please does this library now work properly for android? android build still fails for my app, using Expo SDK 50
are you building using my fork? I'm using expo 50.0.14 and android builds ok for me. if you're referring to the 'platform' prop I have added, this is optional if you only intend to use it for one platform, like myself.
Thank you, wasnt sure how to link it, will try this and test it myself and update, appreciate the switft reply and help
np. hope it works
please does this library now work properly for android? android build still fails for my app, using Expo SDK 50
are you building using my fork? I'm using expo 50.0.14 and android builds ok for me. if you're referring to the 'platform' prop I have added, this is optional if you only intend to use it for one platform, like myself.
Thank you, wasnt sure how to link it, will try this and test it myself and update, appreciate the switft reply and help
np. hope it works
thanks for the response, sorry iām not sure what you mean by ābuilding using my forkā, can you help shed more light? thanks
thanks for the response, sorry iām not sure what you mean by ābuilding using my forkā, can you help shed more light? thanks
until this PR is merged, in your package.json, use my fork as the source instead
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon"
This worked for a dev build, (whicH failed before) so im sure itll work for a prod build thanks so much
when will this be merged?!
it may not be and @outsung has no obligation to, the kindness of @simonsturge means its still usable, as they mentioned you can just use it in our project with this
until this PR is merged, in your package.json, use my fork as the source instead
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon"
can anyone help with how to add this into a project for EAS Build, whenn running eas build it grabs the package from NPM and as such the main package not this fork, how do I point it to this forked patch so I can build for android?
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon",Please do your own testing as I have modified a few things in this PR.
I have added a new 'platforms' prop that can be provided in the config setup. I personally did not want Android support as I wanted to use adaptive icons instead. usage as follows:
[ "expo-dynamic-app-icon", { "light": { "image": "./src/assets/icons/icon_1024x1024.png", "prerendered": true, "platforms": ["ios"] }, "dark": { "image": "./src/assets/icons/icon_dark_1024x1024.png", "prerendered": true, "platforms": ["ios"] } } ],
I tried "expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon"
but getting
CommandError: Failed to resolve plugin for module "expo-dynamic-app-icon" relative to "D:\Sanshu\fintech-clone-react-native"
while running
npx expo run:android
can anyone help with how to add this into a project for EAS Build, whenn running eas build it grabs the package from NPM and as such the main package not this fork, how do I point it to this forked patch so I can build for android?
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon",Please do your own testing as I have modified a few things in this PR. I have added a new 'platforms' prop that can be provided in the config setup. I personally did not want Android support as I wanted to use adaptive icons instead. usage as follows:[ "expo-dynamic-app-icon", { "light": { "image": "./src/assets/icons/icon_1024x1024.png", "prerendered": true, "platforms": ["ios"] }, "dark": { "image": "./src/assets/icons/icon_dark_1024x1024.png", "prerendered": true, "platforms": ["ios"] } } ],I tried
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon"but gettingCommandError: Failed to resolve plugin for module "expo-dynamic-app-icon" relative to "D:\Sanshu\fintech-clone-react-native"while runningnpx expo run:android
"expo-dynamic-app-icon": "git+https://github.com/simonsturge/expo-dynamic-app-icon#acfd73827573e99a5e1bfbe47cf2fb1656e9ccf0",
This will pin it to a specific commit, which is preferred given this isn't an npm package with proper semver.
can anyone help with how to add this into a project for EAS Build, whenn running eas build it grabs the package from NPM and as such the main package not this fork, how do I point it to this forked patch so I can build for android?
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon",Please do your own testing as I have modified a few things in this PR. I have added a new 'platforms' prop that can be provided in the config setup. I personally did not want Android support as I wanted to use adaptive icons instead. usage as follows:[ "expo-dynamic-app-icon", { "light": { "image": "./src/assets/icons/icon_1024x1024.png", "prerendered": true, "platforms": ["ios"] }, "dark": { "image": "./src/assets/icons/icon_dark_1024x1024.png", "prerendered": true, "platforms": ["ios"] } } ],I tried
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon"but gettingCommandError: Failed to resolve plugin for module "expo-dynamic-app-icon" relative to "D:\Sanshu\fintech-clone-react-native"while runningnpx expo run:android"expo-dynamic-app-icon": "git+https://github.com/simonsturge/expo-dynamic-app-icon#acfd73827573e99a5e1bfbe47cf2fb1656e9ccf0",This will pin it to a specific commit, which is preferred given this isn't an npm package with proper semver.
thanks for your comment, I updated my package.json with "expo-dynamic-app-icon": "git+https://github.com/simonsturge/expo-dynamic-app-icon#acfd73827573e99a5e1bfbe47cf2fb1656e9ccf0"
but getting this error while installing node_modules
C:\Users\Admin\AppData\Local\Yarn\Cache\v6\.tmp\cae3bc88f569b1a500984b83f06a3fd1.acfd73827573e99a5e1bfbe47cf2fb1656e9ccf0.prepare\node_modules\expo-module-scripts\bin\expo-module-prepare:3
SyntaxError: Unexpected identifier
thanks for your comment, I updated my package.json with
"expo-dynamic-app-icon": "git+https://github.com/simonsturge/expo-dynamic-app-icon#acfd73827573e99a5e1bfbe47cf2fb1656e9ccf0"but getting this error while installing node_modules
C:\Users\Admin\AppData\Local\Yarn\Cache\v6\.tmp\cae3bc88f569b1a500984b83f06a3fd1.acfd73827573e99a5e1bfbe47cf2fb1656e9ccf0.prepare\node_modules\expo-module-scripts\bin\expo-module-prepare:3
SyntaxError: Unexpected identifier
Hard to say without the full log.
First try 'yarn cache clean' and try install again.
Otherwise try deleting 'node_modules' and then 'yarn install' and 'npx pod-install'.
If it keeps happening I'd search for the error on Google as it seems environment-specific.
can anyone help with how to add this into a project for EAS Build, whenn running eas build it grabs the package from NPM and as such the main package not this fork, how do I point it to this forked patch so I can build for android?
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon",Please do your own testing as I have modified a few things in this PR.
I have added a new 'platforms' prop that can be provided in the config setup. I personally did not want Android support as I wanted to use adaptive icons instead. usage as follows:
[
"expo-dynamic-app-icon",{"light": {"image": "./src/assets/icons/icon_1024x1024.png","prerendered": true,"platforms": ["ios"]},"dark": {"image": "./src/assets/icons/icon_dark_1024x1024.png","prerendered": true,"platforms": ["ios"]}}],I tried
"expo-dynamic-app-icon": "github:simonsturge/expo-dynamic-app-icon"but gettingCommandError: Failed to resolve plugin for module "expo-dynamic-app-icon" relative to "D:\Sanshu\fintech-clone-react-native"while runningnpx expo run:android"expo-dynamic-app-icon": "git+https://github.com/simonsturge/expo-dynamic-app-icon#acfd73827573e99a5e1bfbe47cf2fb1656e9ccf0",
This will pin it to a specific commit, which is preferred given this isn't an npm package with proper semver.
thanks for your comment, I updated my package.json with
"expo-dynamic-app-icon": "git+https://github.com/simonsturge/expo-dynamic-app-icon#acfd73827573e99a5e1bfbe47cf2fb1656e9ccf0"but getting this error while installing node_modulesC:\Users\Admin\AppData\Local\Yarn\Cache\v6\.tmp\cae3bc88f569b1a500984b83f06a3fd1.acfd73827573e99a5e1bfbe47cf2fb1656e9ccf0.prepare\node_modules\expo-module-scripts\bin\expo-module-prepare:3SyntaxError: Unexpected identifierHard to say without the full log.
First try 'yarn cache clean' and try install again.
Otherwise try deleting 'node_modules' and then 'yarn install' and 'npx pod-install'.
If it keeps happening I'd search for the error on Google as it seems environment-specific.
Tried to remove cache, node_modules and installed again, still get the same error.
Tried to remove cache, node_modules and installed again, still get the same error.
Unfortunately I don't have the bandwidth to troubleshoot this issue.
However this issue seems related #21
@outsung It'd be great to get this merged. Completely blocked from using this lib on android due to the Java 11 dependency this introduces.
@outsung It'd be great to get this merged. Completely blocked from using this lib on android due to the Java 11 dependency this introduces.
You can use the fork with these fixes mentioned here
@simonsturge im using this pr to be able to build android, i noticed that when ever i change the icon it ceate new lunch icon on device home screen, for IOS is correct, it happens for you this behaviour?
@simonsturge im using this pr to be able to build android, i noticed that when ever i change the icon it ceate new lunch icon on device home screen, for IOS is correct, it happens for you this behaviour?
this happened to me too, i ended up not using the library, probably when its more stable for android
@simonsturge im using this pr to be able to build android, i noticed that when ever i change the icon it ceate new lunch icon on device home screen, for IOS is correct, it happens for you this behaviour?
this happened to me too, i ended up not using the library, probably when its not stable for android
did you manage to get dynamic icons working on android via another solution?
@simonsturge im using this pr to be able to build android, i noticed that when ever i change the icon it ceate new lunch icon on device home screen, for IOS is correct, it happens for you this behaviour?
this happened to me too, i ended up not using the library, probably when its not stable for android
did you manage to get dynamic icons working on android via another solution?
Not really, still have issue of duplicate icon
seems like this is not working anymore @simonsturge do you have same issue? was working fine , now it's gives same gradle error
i updated few things on package to make build possible on Android, and published to npm
https://www.npmjs.com/package/nixa-expo-dynamic-app-icon
@kouloughli-hemza Thanks for your fork! On android the size doesn't fill up the entire screen (addressing this issue: https://github.com/outsung/expo-dynamic-app-icon/issues/3)
