Skip to content

feat: added possibility to start module with C++ code enabled #30

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

Merged
merged 4 commits into from
May 6, 2020

Conversation

Patys
Copy link
Contributor

@Patys Patys commented Mar 23, 2020

Summary

  • Script ask you do you want to add C++ code to your module (by default set to "No")
  • It adds C++ files and additional code to load it to RN module
  • you can use code inside cpp folder to develop your module

Test Plan

  1. Run script
  2. Answer last question with Yes (Do you want to use C++ code?)
  3. Example contains multiply code

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • I added the documentation in README.md
  • I mentioned this change in CHANGELOG.md
  • I updated the typed files (TS and Flow)
  • I added a sample use of the API in the example project (example/App.js)

Copy link
Member

@satya164 satya164 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for the PR

@satya164 satya164 changed the title Added possiblity to start module with C++ code enabled feat: added possibility to start module with C++ code enabled May 6, 2020
@satya164 satya164 merged commit 6588c5c into callstack:master May 6, 2020
set (CMAKE_VERBOSE_MAKEFILE ON)
set (CMAKE_CXX_STANDARD 11)

add_library(cpp

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe choose another name for library. cpp maybe a little confusing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it's a good idea. I will try to address that in next pr 👍

cmake_minimum_required(VERSION 3.4.1)

set (CMAKE_VERBOSE_MAKEFILE ON)
set (CMAKE_CXX_STANDARD 11)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe 14 ? 11 is bit of old.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had issues with newer versions as it's compiled for ios and android. I will try to investigate it more in future to bump it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants