Revert install hooks modifying build.gradle#41
Revert install hooks modifying build.gradle#41jkasten2 wants to merge 1 commit intoroblav96:masterfrom
Conversation
|
There are missing files when you add the plugin from github can you add npm repo to the new branch ? |
|
@OPADA-Eng @jkasten2 Same problem here, tried to follow this steps and I was able to avoid the gradle issue but still cannot do the "require". Any fix ? |
|
@MopheusDG just remove the file from hooks/after-prepare/nativescript-onesignal-gradle.js |
|
Thank you @OPADA-Eng, I've done that before but for some reason was still failing on my APP, so I created a new one and it's working now, so need to re-implement in mine. By the way, I've created a request for help to change the main.ts code required to JS as I was able to modify the Android code but the IOS code is more difficult, to see if someone can help me. #43. Android modified code works but I don't have the skill to modify the IOS one, it's much more complicated. Thanks ! |
|
@OPADA-Eng @MopheusDG hmm ya weird, using @roblav96 I believe after we merge this PR and create a release this should fix issues #38 and #39. Can you merge it in and push a new release to NPM? |
|
Would love to have this merged and released to NPM. Ping @roblav96 ;) |
|
If I use I am struggling to make this lib working on tns v6.5.0 for android |
|
Ok, I resolved empty but then I got such error: It is resolved by removing or commenting this section from @jkasten2 it would be great if you make a new commit with this fix UPDATE: |
|
hey @Onefivefournine, do you want to setup a fork of this project with me and make it work properly? |

Build Error
This fixes the following
tns build androiderror.Issue Details
Hooks added in 1.0.8 by PR #37 are creating Android build errors due to
maven { url "https://plugins.gradle.org/m2/" }being added to incorrect locations inbuild.gradlefiles.This will resolve issues #38 and #39.
Solution
Removing these install hooks modify the
build.gradlefiles. They are not needed as the OneSignal-Gradle-Plugin added in PR #36 takes care of fixing Android dependency versions it was trying to fix.Upgrading from 1.0.8
tns plugin remove nativescript-onesignalrm hooks/after-prepare/nativescript-onesignal-gradle.jstns build androidmaven { url "https://plugins.gradle.org/m2/" }remove the lines from thebuild.gradlefiles it notes.tns platform clean androidplatforms/androidfolder.tns plugin add https://github.com/OneSignal/nativescript-onesignaltns platform clean androidyou will need to add back the OneSignalmanifestPlaceholderstoplatforms/android/app/build.gradle.tns build android