From 948b9a87134111ac10b80b6d4bbaa64146c47b2a Mon Sep 17 00:00:00 2001 From: DevHossamHassan Date: Mon, 3 Oct 2016 20:20:59 +0200 Subject: [PATCH] init instabug-reactnative --- README.md | 53 ++++ android/build.gradle | 25 ++ android/src/main/AndroidManifest.xml | 6 + .../RNInstabugReactnativeModule.java | 22 ++ .../RNInstabugReactnativePackage.java | 28 ++ index.js | 6 + ios/RNInstabugReactnative.h | 7 + ios/RNInstabugReactnative.m | 13 + .../project.pbxproj | 252 ++++++++++++++++++ package.json | 20 ++ windows/.gitignore | 78 ++++++ windows/RNInstabugReactnative.sln | 78 ++++++ .../Properties/AssemblyInfo.cs | 30 +++ .../Properties/RNInstabugReactnative.rd.xml | 28 ++ .../RNInstabugReactnative.csproj | 183 +++++++++++++ .../RNInstabugReactnativeModule.cs | 33 +++ .../RNInstabugReactnativePackage.cs | 53 ++++ windows/RNInstabugReactnative/project.json | 16 ++ 18 files changed, 931 insertions(+) create mode 100644 README.md create mode 100644 android/build.gradle create mode 100644 android/src/main/AndroidManifest.xml create mode 100644 android/src/main/java/com/reactlibrary/RNInstabugReactnativeModule.java create mode 100644 android/src/main/java/com/reactlibrary/RNInstabugReactnativePackage.java create mode 100644 index.js create mode 100644 ios/RNInstabugReactnative.h create mode 100644 ios/RNInstabugReactnative.m create mode 100644 ios/RNInstabugReactnative.xcodeproj/project.pbxproj create mode 100644 package.json create mode 100644 windows/.gitignore create mode 100644 windows/RNInstabugReactnative.sln create mode 100644 windows/RNInstabugReactnative/Properties/AssemblyInfo.cs create mode 100644 windows/RNInstabugReactnative/Properties/RNInstabugReactnative.rd.xml create mode 100644 windows/RNInstabugReactnative/RNInstabugReactnative.csproj create mode 100644 windows/RNInstabugReactnative/RNInstabugReactnativeModule.cs create mode 100644 windows/RNInstabugReactnative/RNInstabugReactnativePackage.cs create mode 100644 windows/RNInstabugReactnative/project.json diff --git a/README.md b/README.md new file mode 100644 index 0000000..9de9f83 --- /dev/null +++ b/README.md @@ -0,0 +1,53 @@ + +# react-native-instabug-reactnative + +## Getting started + +`$ npm install react-native-instabug-reactnative --save` + +### Mostly automatic installation + +`$ react-native link react-native-instabug-reactnative` + +### Manual installation + + +#### iOS + +1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]` +2. Go to `node_modules` ➜ `react-native-instabug-reactnative` and add `RNInstabugReactnative.xcodeproj` +3. In XCode, in the project navigator, select your project. Add `libRNInstabugReactnative.a` to your project's `Build Phases` ➜ `Link Binary With Libraries` +4. Run your project (`Cmd+R`)< + +#### Android + +1. Open up `android/app/src/main/java/[...]/MainActivity.java` + - Add `import com.reactlibrary.RNInstabugReactnativePackage;` to the imports at the top of the file + - Add `new RNInstabugReactnativePackage()` to the list returned by the `getPackages()` method +2. Append the following lines to `android/settings.gradle`: + ``` + include ':react-native-instabug-reactnative' + project(':react-native-instabug-reactnative').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-instabug-reactnative/android') + ``` +3. Insert the following lines inside the dependencies block in `android/app/build.gradle`: + ``` + compile project(':react-native-instabug-reactnative') + ``` + +#### Windows +[Read it! :D](https://github.com/ReactWindows/react-native) + +1. In Visual Studio add the `RNInstabugReactnative.sln` in `node_modules/react-native-instabug-reactnative/windows/RNInstabugReactnative.sln` folder to their solution, reference from their app. +2. Open up your `MainPage.cs` app + - Add `using Cl.Json.RNInstabugReactnative;` to the usings at the top of the file + - Add `new RNInstabugReactnativePackage()` to the `List` returned by the `Packages` method + + +## Usage +```javascript +import RNInstabugReactnative from 'react-native-instabug-reactnative'; + +// TODO: What do with the module? +RNInstabugReactnative; +``` + \ No newline at end of file diff --git a/android/build.gradle b/android/build.gradle new file mode 100644 index 0000000..7e9c5a1 --- /dev/null +++ b/android/build.gradle @@ -0,0 +1,25 @@ + +apply plugin: 'com.android.library' + +android { + compileSdkVersion 23 + buildToolsVersion "23.0.1" + + defaultConfig { + minSdkVersion 16 + targetSdkVersion 22 + versionCode 1 + versionName "1.0" + ndk { + abiFilters "armeabi-v7a", "x86" + } + } + lintOptions { + warning 'InvalidPackage' + } +} + +dependencies { + compile 'com.facebook.react:react-native:0.20.+' +} + \ No newline at end of file diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml new file mode 100644 index 0000000..41a92ab --- /dev/null +++ b/android/src/main/AndroidManifest.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/android/src/main/java/com/reactlibrary/RNInstabugReactnativeModule.java b/android/src/main/java/com/reactlibrary/RNInstabugReactnativeModule.java new file mode 100644 index 0000000..3a9e1d3 --- /dev/null +++ b/android/src/main/java/com/reactlibrary/RNInstabugReactnativeModule.java @@ -0,0 +1,22 @@ + +package com.reactlibrary; + +import com.facebook.react.bridge.ReactApplicationContext; +import com.facebook.react.bridge.ReactContextBaseJavaModule; +import com.facebook.react.bridge.ReactMethod; +import com.facebook.react.bridge.Callback; + +public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule { + + private final ReactApplicationContext reactContext; + + public RNInstabugReactnativeModule(ReactApplicationContext reactContext) { + super(reactContext); + this.reactContext = reactContext; + } + + @Override + public String getName() { + return "RNInstabugReactnative"; + } +} \ No newline at end of file diff --git a/android/src/main/java/com/reactlibrary/RNInstabugReactnativePackage.java b/android/src/main/java/com/reactlibrary/RNInstabugReactnativePackage.java new file mode 100644 index 0000000..72f34ea --- /dev/null +++ b/android/src/main/java/com/reactlibrary/RNInstabugReactnativePackage.java @@ -0,0 +1,28 @@ + +package com.reactlibrary; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import com.facebook.react.ReactPackage; +import com.facebook.react.bridge.NativeModule; +import com.facebook.react.bridge.ReactApplicationContext; +import com.facebook.react.uimanager.ViewManager; +import com.facebook.react.bridge.JavaScriptModule; +public class RNInstabugReactnativePackage implements ReactPackage { + @Override + public List createNativeModules(ReactApplicationContext reactContext) { + return Arrays.asList(new RNInstabugReactnativeModule(reactContext)); + } + + @Override + public List> createJSModules() { + return Collections.emptyList(); + } + + @Override + public List createViewManagers(ReactApplicationContext reactContext) { + return Collections.emptyList(); + } +} \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..84d7b4a --- /dev/null +++ b/index.js @@ -0,0 +1,6 @@ + +import { NativeModules } from 'react-native'; + +const { RNInstabugReactnative } = NativeModules; + +export default RNInstabugReactnative; diff --git a/ios/RNInstabugReactnative.h b/ios/RNInstabugReactnative.h new file mode 100644 index 0000000..9b1ab01 --- /dev/null +++ b/ios/RNInstabugReactnative.h @@ -0,0 +1,7 @@ + +#import "RCTBridgeModule.h" + +@interface RNInstabugReactnative : NSObject + +@end + \ No newline at end of file diff --git a/ios/RNInstabugReactnative.m b/ios/RNInstabugReactnative.m new file mode 100644 index 0000000..7d3802e --- /dev/null +++ b/ios/RNInstabugReactnative.m @@ -0,0 +1,13 @@ + +#import "RNInstabugReactnative.h" + +@implementation RNInstabugReactnative + +- (dispatch_queue_t)methodQueue +{ + return dispatch_get_main_queue(); +} +RCT_EXPORT_MODULE() + +@end + \ No newline at end of file diff --git a/ios/RNInstabugReactnative.xcodeproj/project.pbxproj b/ios/RNInstabugReactnative.xcodeproj/project.pbxproj new file mode 100644 index 0000000..b8fae6e --- /dev/null +++ b/ios/RNInstabugReactnative.xcodeproj/project.pbxproj @@ -0,0 +1,252 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + B3E7B58A1CC2AC0600A0062D /* RNInstabugReactnative.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNInstabugReactnative.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 58B511D91A9E6C8500147676 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 134814201AA4EA6300B7C361 /* libRNInstabugReactnative.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNInstabugReactnative.a; sourceTree = BUILT_PRODUCTS_DIR; }; + B3E7B5881CC2AC0600A0062D /* RNInstabugReactnative.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNInstabugReactnative.h; sourceTree = ""; }; + B3E7B5891CC2AC0600A0062D /* RNInstabugReactnative.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNInstabugReactnative.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 58B511D81A9E6C8500147676 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 134814211AA4EA7D00B7C361 /* Products */ = { + isa = PBXGroup; + children = ( + 134814201AA4EA6300B7C361 /* libRNInstabugReactnative.a */, + ); + name = Products; + sourceTree = ""; + }; + 58B511D21A9E6C8500147676 = { + isa = PBXGroup; + children = ( + B3E7B5881CC2AC0600A0062D /* RNInstabugReactnative.h */, + B3E7B5891CC2AC0600A0062D /* RNInstabugReactnative.m */, + 134814211AA4EA7D00B7C361 /* Products */, + ); + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 58B511DA1A9E6C8500147676 /* RNInstabugReactnative */ = { + isa = PBXNativeTarget; + buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNInstabugReactnative" */; + buildPhases = ( + 58B511D71A9E6C8500147676 /* Sources */, + 58B511D81A9E6C8500147676 /* Frameworks */, + 58B511D91A9E6C8500147676 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = RNInstabugReactnative; + productName = RCTDataManager; + productReference = 134814201AA4EA6300B7C361 /* libRNInstabugReactnative.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 58B511D31A9E6C8500147676 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0610; + ORGANIZATIONNAME = Facebook; + TargetAttributes = { + 58B511DA1A9E6C8500147676 = { + CreatedOnToolsVersion = 6.1.1; + }; + }; + }; + buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNInstabugReactnative" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 58B511D21A9E6C8500147676; + productRefGroup = 58B511D21A9E6C8500147676; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 58B511DA1A9E6C8500147676 /* RNInstabugReactnative */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 58B511D71A9E6C8500147676 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B3E7B58A1CC2AC0600A0062D /* RNInstabugReactnative.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 58B511ED1A9E6C8500147676 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 58B511EE1A9E6C8500147676 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 58B511F01A9E6C8500147676 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + "$(SRCROOT)/../../../React/**", + "$(SRCROOT)/../../react-native/React/**", + ); + LIBRARY_SEARCH_PATHS = "$(inherited)"; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = RNInstabugReactnative; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 58B511F11A9E6C8500147676 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + "$(SRCROOT)/../../../React/**", + "$(SRCROOT)/../../react-native/React/**", + ); + LIBRARY_SEARCH_PATHS = "$(inherited)"; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = RNInstabugReactnative; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNInstabugReactnative" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 58B511ED1A9E6C8500147676 /* Debug */, + 58B511EE1A9E6C8500147676 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNInstabugReactnative" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 58B511F01A9E6C8500147676 /* Debug */, + 58B511F11A9E6C8500147676 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 58B511D31A9E6C8500147676 /* Project object */; +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..5307614 --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ + +{ + "name": "react-native-instabug-reactnative", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [ + "react-native" + ], + "author": "", + "license": "", + "peerDependencies": { + "react-native": "^0.29.0", + "react-native-windows": "^0.29.0" + + } +} diff --git a/windows/.gitignore b/windows/.gitignore new file mode 100644 index 0000000..cbf7e7f --- /dev/null +++ b/windows/.gitignore @@ -0,0 +1,78 @@ +*AppPackages* +*BundleArtifacts* +*ReactAssets* + +#OS junk files +[Tt]humbs.db +*.DS_Store + +#Visual Studio files +*.[Oo]bj +*.user +*.aps +*.pch +*.vspscc +*.vssscc +*_i.c +*_p.c +*.ncb +*.suo +*.tlb +*.tlh +*.bak +*.[Cc]ache +*.ilk +*.log +*.lib +*.sbr +*.sdf +*.opensdf +*.opendb +*.unsuccessfulbuild +ipch/ +[Oo]bj/ +[Bb]in +[Dd]ebug*/ +[Rr]elease*/ +Ankh.NoLoad + +#MonoDevelop +*.pidb +*.userprefs + +#Tooling +_ReSharper*/ +*.resharper +[Tt]est[Rr]esult* +*.sass-cache + +#Project files +[Bb]uild/ + +#Subversion files +.svn + +# Office Temp Files +~$* + +# vim Temp Files +*~ + +#NuGet +packages/ +*.nupkg + +#ncrunch +*ncrunch* +*crunch*.local.xml + +# visual studio database projects +*.dbmdl + +#Test files +*.testsettings + +#Other files +*.DotSettings +.vs/ +*project.lock.json diff --git a/windows/RNInstabugReactnative.sln b/windows/RNInstabugReactnative.sln new file mode 100644 index 0000000..32eb11d --- /dev/null +++ b/windows/RNInstabugReactnative.sln @@ -0,0 +1,78 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25123.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RNInstabugReactnative", "RNInstabugReactnative\RNInstabugReactnative.csproj", "{4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactNative", "..\node_modules\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj", "{C7673AD5-E3AA-468C-A5FD-FA38154E205C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|ARM = Debug|ARM + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Development|Any CPU = Development|Any CPU + Development|ARM = Development|ARM + Development|x64 = Development|x64 + Development|x86 = Development|x86 + Release|Any CPU = Release|Any CPU + Release|ARM = Release|ARM + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Debug|ARM.ActiveCfg = Debug|ARM + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Debug|ARM.Build.0 = Debug|ARM + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Debug|x64.ActiveCfg = Debug|x64 + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Debug|x64.Build.0 = Debug|x64 + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Debug|x86.ActiveCfg = Debug|x86 + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Debug|x86.Build.0 = Debug|x86 + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Development|Any CPU.ActiveCfg = Development|Any CPU + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Development|Any CPU.Build.0 = Development|Any CPU + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Development|ARM.ActiveCfg = Development|ARM + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Development|ARM.Build.0 = Development|ARM + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Development|x64.ActiveCfg = Development|x64 + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Development|x64.Build.0 = Development|x64 + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Development|x86.ActiveCfg = Development|x86 + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Development|x86.Build.0 = Development|x86 + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Release|Any CPU.Build.0 = Release|Any CPU + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Release|ARM.ActiveCfg = Release|ARM + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Release|ARM.Build.0 = Release|ARM + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Release|x64.ActiveCfg = Release|x64 + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Release|x64.Build.0 = Release|x64 + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Release|x86.ActiveCfg = Release|x86 + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}.Release|x86.Build.0 = Release|x86 + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.ActiveCfg = Debug|ARM + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.Build.0 = Debug|ARM + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.ActiveCfg = Debug|x64 + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.Build.0 = Debug|x64 + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.ActiveCfg = Debug|x86 + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.Build.0 = Debug|x86 + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|Any CPU.ActiveCfg = Debug|Any CPU + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|Any CPU.Build.0 = Debug|Any CPU + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|ARM.ActiveCfg = Debug|ARM + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|ARM.Build.0 = Debug|ARM + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x64.ActiveCfg = Debug|x64 + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x64.Build.0 = Debug|x64 + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x86.ActiveCfg = Debug|x86 + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x86.Build.0 = Debug|x86 + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|Any CPU.Build.0 = Release|Any CPU + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.ActiveCfg = Release|ARM + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.Build.0 = Release|ARM + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.ActiveCfg = Release|x64 + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.Build.0 = Release|x64 + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.ActiveCfg = Release|x86 + {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal + \ No newline at end of file diff --git a/windows/RNInstabugReactnative/Properties/AssemblyInfo.cs b/windows/RNInstabugReactnative/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..978586d --- /dev/null +++ b/windows/RNInstabugReactnative/Properties/AssemblyInfo.cs @@ -0,0 +1,30 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("RNInstabugReactnative")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RNInstabugReactnative")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: ComVisible(false)] + \ No newline at end of file diff --git a/windows/RNInstabugReactnative/Properties/RNInstabugReactnative.rd.xml b/windows/RNInstabugReactnative/Properties/RNInstabugReactnative.rd.xml new file mode 100644 index 0000000..93d5281 --- /dev/null +++ b/windows/RNInstabugReactnative/Properties/RNInstabugReactnative.rd.xml @@ -0,0 +1,28 @@ + + + + + + + + + diff --git a/windows/RNInstabugReactnative/RNInstabugReactnative.csproj b/windows/RNInstabugReactnative/RNInstabugReactnative.csproj new file mode 100644 index 0000000..eabba9e --- /dev/null +++ b/windows/RNInstabugReactnative/RNInstabugReactnative.csproj @@ -0,0 +1,183 @@ + + + + + Debug + AnyCPU + {4CBC7390-8995-11E6-8D8A-F79CA2B6B98B} + Library + Properties + RNInstabugReactnative + RNInstabugReactnative + en-US + UAP + 10.0.10586.0 + 10.0.10240.0 + 14 + 512 + {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + ..\..\node_modules + + + ..\.. + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + prompt + 4 + + + x86 + true + bin\x86\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x86 + false + prompt + + + x86 + bin\x86\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x86 + false + prompt + + + ARM + true + bin\ARM\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + ARM + false + prompt + + + ARM + bin\ARM\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + ARM + false + prompt + + + x64 + true + bin\x64\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x64 + false + prompt + + + x64 + bin\x64\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x64 + false + prompt + + + + + + + + + + + + + + {c7673ad5-e3aa-468c-a5fd-fa38154e205c} + ReactNative + + + + 14.0 + + + true + bin\Development\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + true + full + AnyCPU + false + prompt + MinimumRecommendedRules.ruleset + + + true + bin\x86\Development\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + true + full + x86 + false + prompt + MinimumRecommendedRules.ruleset + + + true + bin\ARM\Development\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + true + full + ARM + false + prompt + MinimumRecommendedRules.ruleset + + + true + bin\x64\Development\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + true + full + x64 + false + prompt + MinimumRecommendedRules.ruleset + + + + diff --git a/windows/RNInstabugReactnative/RNInstabugReactnativeModule.cs b/windows/RNInstabugReactnative/RNInstabugReactnativeModule.cs new file mode 100644 index 0000000..16c478c --- /dev/null +++ b/windows/RNInstabugReactnative/RNInstabugReactnativeModule.cs @@ -0,0 +1,33 @@ +using ReactNative.Bridge; +using System; +using System.Collections.Generic; +using Windows.ApplicationModel.Core; +using Windows.UI.Core; + +namespace Com.Reactlibrary.RNInstabugReactnative +{ + /// + /// A module that allows JS to share data. + /// + class RNInstabugReactnativeModule : NativeModuleBase + { + /// + /// Instantiates the . + /// + internal RNInstabugReactnativeModule() + { + + } + + /// + /// The name of the native module. + /// + public override string Name + { + get + { + return "RNInstabugReactnative"; + } + } + } +} diff --git a/windows/RNInstabugReactnative/RNInstabugReactnativePackage.cs b/windows/RNInstabugReactnative/RNInstabugReactnativePackage.cs new file mode 100644 index 0000000..4903cef --- /dev/null +++ b/windows/RNInstabugReactnative/RNInstabugReactnativePackage.cs @@ -0,0 +1,53 @@ +using ReactNative.Bridge; +using ReactNative.Modules.Core; +using ReactNative.UIManager; +using System; +using System.Collections.Generic; + +namespace Com.Reactlibrary.RNInstabugReactnative +{ + /// + /// Package defining core framework modules (e.g., ). + /// It should be used for modules that require special integration with + /// other framework parts (e.g., with the list of packages to load view + /// managers from). + /// + public class RNInstabugReactnativePackage : IReactPackage + { + /// + /// Creates the list of native modules to register with the react + /// instance. + /// + /// The react application context. + /// The list of native modules. + public IReadOnlyList CreateNativeModules(ReactContext reactContext) + { + return new List + { + new RNInstabugReactnativeModule(), + }; + } + + /// + /// Creates the list of JavaScript modules to register with the + /// react instance. + /// + /// The list of JavaScript modules. + public IReadOnlyList CreateJavaScriptModulesConfig() + { + return new List(0); + } + + /// + /// Creates the list of view managers that should be registered with + /// the . + /// + /// The react application context. + /// The list of view managers. + public IReadOnlyList CreateViewManagers( + ReactContext reactContext) + { + return new List(0); + } + } +} diff --git a/windows/RNInstabugReactnative/project.json b/windows/RNInstabugReactnative/project.json new file mode 100644 index 0000000..a45c8bd --- /dev/null +++ b/windows/RNInstabugReactnative/project.json @@ -0,0 +1,16 @@ +{ + "dependencies": { + "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0" + }, + "frameworks": { + "uap10.0": {} + }, + "runtimes": { + "win10-arm": {}, + "win10-arm-aot": {}, + "win10-x86": {}, + "win10-x86-aot": {}, + "win10-x64": {}, + "win10-x64-aot": {} + } +}