-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(android): simple installation #414
Changes from all commits
02ae7d0
6c3adaa
a78cfbd
e1eef2d
e15d304
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
"postinstall": "cd node_modules/@notifee/react-native && yarn" | ||
}, | ||
"dependencies": { | ||
"@notifee/react-native": "github:notifee/react-native-notifee", | ||
"@notifee/react-native": "link:../", | ||
Comment on lines
13
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I linked to the current project to check the build with changes, please let me know if a revert is needed! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel like this was there for some reason, but in retrospect I can't remember what it is. I think the link to local is better personally and I'd like it to work. Willing to go with it and see if it works, personally |
||
"react": "17.0.2", | ||
"react-native": "0.66.0" | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ const withNotifeeProjectGradlePlugin: ConfigPlugin = config => { | |
} | ||
|
||
modResults.contents = setCompileSdkVersion(modResults.contents); | ||
modResults.contents = setMavenRepository(modResults.contents); | ||
return { modResults, ...subConfig }; | ||
}); | ||
}; | ||
|
@@ -24,15 +23,5 @@ const setCompileSdkVersion = (buildGradle: string): string => { | |
return buildGradle.replace(/compileSdkVersion = 30/, `compileSdkVersion = 31`); | ||
}; | ||
|
||
const setMavenRepository = (projectBuildGradle: string): string => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh you got the expo plugin too, I forgot about it 🤦 - nicely done There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd never know if you hadn't told me about the tests. 👍 |
||
if (projectBuildGradle.includes('@notifee/react-native/android/libs')) return projectBuildGradle; | ||
|
||
return projectBuildGradle.replace( | ||
/mavenLocal\(\)/, | ||
`mavenLocal() | ||
maven { url "$rootDir/../node_modules/@notifee/react-native/android/libs" }`, | ||
); | ||
}; | ||
|
||
export { setCompileSdkVersion, setMavenRepository }; | ||
export { setCompileSdkVersion }; | ||
export default withNotifeeProjectGradlePlugin; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@christocracy - you might like this, removes an error-prone install step for react-native repos with local maven repositories to load aars, appears to work fine for us here, could clean up my app build files from background-fetch and geolocation-android :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoa, cool!!