-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
karol-bisztyga
committed
Mar 2, 2021
1 parent
b9a6030
commit 6dba77d
Showing
7 changed files
with
104 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,3 +62,5 @@ buck-out/ | |
# Expo | ||
.expo/* | ||
web-build/ | ||
|
||
android/app/.cxx/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# For more information about using CMake with Android Studio, read the | ||
# documentation: https://d.android.com/studio/projects/add-native-code.html | ||
|
||
# Sets the minimum version of CMake required to build the native library. | ||
|
||
cmake_minimum_required(VERSION 3.4.1) | ||
|
||
# Creates and names a library, sets it as either STATIC | ||
# or SHARED, and provides the relative paths to its source code. | ||
# You can define multiple libraries, and CMake builds them for you. | ||
# Gradle automatically packages shared libraries with your APK. | ||
|
||
set(build_DIR ${CMAKE_SOURCE_DIR}/build) | ||
set(PACKAGE_NAME "my_jni_module") | ||
|
||
#THIS RESULTS IN AN ERROR: | ||
#Could not find a package configuration file provided by "fbjni" with any of | ||
#the following names: | ||
# | ||
#fbjniConfig.cmake | ||
#fbjni-config.cmake | ||
# | ||
#Add the installation prefix of "fbjni" to CMAKE_PREFIX_PATH or set | ||
#"fbjni_DIR" to a directory containing one of the above files. If "fbjni" | ||
#provides a separate development package or SDK, be sure it has been | ||
#installed. | ||
#find_package(fbjni REQUIRED CONFIG) | ||
|
||
add_library( # Sets the name of the library. | ||
${PACKAGE_NAME} | ||
|
||
# Sets the library as a shared library. | ||
SHARED | ||
|
||
# Provides a relative path to your source file(s). | ||
./src/cpp/sample.cpp | ||
) | ||
|
||
target_link_libraries(${PACKAGE_NAME} | ||
# fbjni::fbjni | ||
android | ||
log | ||
) | ||
|
||
#target_link_libraries(my_jni_module | ||
# android | ||
# log | ||
# fbjni::fbjni | ||
#) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
26 changes: 26 additions & 0 deletions
26
android/app/src/main/java/com/rnfbjni/generated/BasePackageList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.rnfbjni.generated; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import org.unimodules.core.interfaces.Package; | ||
|
||
public class BasePackageList { | ||
public List<Package> getPackageList() { | ||
return Arrays.<Package>asList( | ||
new expo.modules.application.ApplicationPackage(), | ||
new expo.modules.constants.ConstantsPackage(), | ||
new expo.modules.errorrecovery.ErrorRecoveryPackage(), | ||
new expo.modules.filesystem.FileSystemPackage(), | ||
new expo.modules.font.FontLoaderPackage(), | ||
new expo.modules.imageloader.ImageLoaderPackage(), | ||
new expo.modules.keepawake.KeepAwakePackage(), | ||
new expo.modules.lineargradient.LinearGradientPackage(), | ||
new expo.modules.location.LocationPackage(), | ||
new expo.modules.permissions.PermissionsPackage(), | ||
new expo.modules.securestore.SecureStorePackage(), | ||
new expo.modules.splashscreen.SplashScreenPackage(), | ||
new expo.modules.sqlite.SQLitePackage(), | ||
new expo.modules.updates.UpdatesPackage() | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#Mon Mar 01 17:15:43 CET 2021 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip |