mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-02-28 05:00:55 +00:00
Create instabug-reactnative
This commit is contained in:
parent
948b9a8713
commit
866dc12bb9
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
*.iml
|
||||
.idea/
|
||||
|
||||
.DS_Store
|
||||
android/.DS_Store
|
||||
ios/.DS_Store
|
||||
|
||||
build/
|
14
.npmignore
Normal file
14
.npmignore
Normal file
@ -0,0 +1,14 @@
|
||||
*.iml
|
||||
.idea/
|
||||
.DS_Store
|
||||
|
||||
android/.DS_Store
|
||||
android/android.iml
|
||||
android/gradlew
|
||||
android/gradlew.bat
|
||||
android/local.properties
|
||||
|
||||
ios/.DS_Store
|
||||
|
||||
build/
|
||||
|
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Instabug
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
31
README.md
31
README.md
@ -1,13 +1,13 @@
|
||||
|
||||
# react-native-instabug-reactnative
|
||||
# instabug-reactnative
|
||||
|
||||
## Getting started
|
||||
|
||||
`$ npm install react-native-instabug-reactnative --save`
|
||||
`$ npm install https://github.com/Instabug/instabug-reactnative --save`
|
||||
|
||||
### Mostly automatic installation
|
||||
|
||||
`$ react-native link react-native-instabug-reactnative`
|
||||
`$ react-native link instabug-reactnative`
|
||||
|
||||
### Manual installation
|
||||
|
||||
@ -15,39 +15,36 @@
|
||||
#### 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`
|
||||
2. Go to `node_modules` ➜ `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 `import com.instabug.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')
|
||||
include ':instabug-reactnative'
|
||||
project(':instabug-reactnative').projectDir = new File(rootProject.projectDir, '../node_modules/instabug-reactnative/android')
|
||||
```
|
||||
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
|
||||
```
|
||||
compile project(':react-native-instabug-reactnative')
|
||||
compile project(':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<IReactPackage>` returned by the `Packages` method
|
||||
|
||||
|
||||
## Usage
|
||||
```javascript
|
||||
import RNInstabugReactnative from 'react-native-instabug-reactnative';
|
||||
import RNInstabugReactnative from 'instabug-reactnative';
|
||||
|
||||
// TODO: What do with the module?
|
||||
RNInstabugReactnative;
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This software is released under <a href="https://opensource.org/licenses/mit-license.php">MIT License</a>.
|
||||
|
||||
© 2016 Instabug. All rights reserved.
|
@ -21,5 +21,7 @@ android {
|
||||
|
||||
dependencies {
|
||||
compile 'com.facebook.react:react-native:0.20.+'
|
||||
compile 'com.instabug.library:instabug:2+'
|
||||
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.reactlibrary">
|
||||
package="com.instabug.reactlibrary">
|
||||
|
||||
</manifest>
|
||||
|
@ -0,0 +1,165 @@
|
||||
|
||||
package com.instabug.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;
|
||||
|
||||
import com.instabug.library.IBGInvocationMode;
|
||||
import com.instabug.library.Instabug;
|
||||
|
||||
import java.util.Locale;
|
||||
import android.net.Uri;
|
||||
|
||||
|
||||
public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
||||
|
||||
private Instabug mInstabug;
|
||||
|
||||
public RNInstabugReactnativeModule(ReactApplicationContext reactContext, Instabug instabug) {
|
||||
super(reactContext);
|
||||
this.mInstabug = instabug;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "RNInstabugReactnative";
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds tag(s) to issues before sending them
|
||||
*
|
||||
* @param tags
|
||||
*/
|
||||
@ReactMethod
|
||||
public void addTags(String tags) {
|
||||
try {
|
||||
String[] result = tags.split(",");
|
||||
mInstabug.resetTags(); //clear last commit tags
|
||||
mInstabug.addTags(result);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Change Locale of Instabug UI elements(defaults to English)
|
||||
*
|
||||
* @param languageTag
|
||||
*/
|
||||
@ReactMethod
|
||||
public void changeLocale(String languageTag) {
|
||||
try {
|
||||
switch (languageTag) {
|
||||
case "CHINA":
|
||||
case "CHINESE":
|
||||
case "PRC":
|
||||
case "SIMPLIFIED_CHINESE":
|
||||
mInstabug.changeLocale(Locale.CHINESE);
|
||||
break;
|
||||
case "TAIWAN":
|
||||
case "TRADITIONAL_CHINESE":
|
||||
mInstabug.changeLocale(Locale.TAIWAN);
|
||||
break;
|
||||
case "ENGLISH":
|
||||
mInstabug.changeLocale(Locale.ENGLISH);
|
||||
break;
|
||||
case "UK":
|
||||
mInstabug.changeLocale(Locale.UK);
|
||||
break;
|
||||
case "US":
|
||||
mInstabug.changeLocale(Locale.US);
|
||||
break;
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void report(String value) {
|
||||
IBGInvocationMode mode = IBGInvocationMode.IBGInvocationModeNA;
|
||||
if (value.equals("bug")) {
|
||||
mode = IBGInvocationMode.IBGInvocationModeBugReporter;
|
||||
} else if (value.equals("feedback")) {
|
||||
mode = IBGInvocationMode.IBGInvocationModeFeedbackSender;
|
||||
}
|
||||
|
||||
mInstabug.invoke(mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* The file at filePath will be uploaded along upcoming reports with the name fileNameWithExtension
|
||||
*
|
||||
* @param fileUri
|
||||
* @param fileNameWithExtension
|
||||
*/
|
||||
@ReactMethod
|
||||
public void setFileAttachment(String fileUri, String fileNameWithExtension) {
|
||||
try {
|
||||
Uri uri = Uri.parse(fileUri);
|
||||
mInstabug.setFileAttachment(uri, fileNameWithExtension);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* If your app already acquires the user's email address and you provide it to this method,
|
||||
* Instabug will pre-fill the user email in reports.
|
||||
*
|
||||
* @param userEmail
|
||||
*/
|
||||
@ReactMethod
|
||||
public void setUserEmail(String userEmail) {
|
||||
try {
|
||||
mInstabug.setUserEmail(userEmail);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the user name that is used in the dashboard's contacts.
|
||||
*
|
||||
* @param username
|
||||
*/
|
||||
@ReactMethod
|
||||
public void setUsername(String username) {
|
||||
try {
|
||||
mInstabug.setUsername(username);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds specific user data that you need to be added to the reports
|
||||
*
|
||||
* @param userData
|
||||
*/
|
||||
@ReactMethod
|
||||
public void setUserData(String userData) {
|
||||
try {
|
||||
mInstabug.setUserData(userData);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this method to display the discovery dialog explaining the shake gesture or the two
|
||||
* finger swipe gesture, if you've enabled it.
|
||||
* i.e: This method is automatically called on first run of the application
|
||||
*/
|
||||
@ReactMethod
|
||||
public void showIntroMessage() {
|
||||
try {
|
||||
mInstabug.showIntroMessage();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
|
||||
package com.instabug.reactlibrary;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import android.app.Application;
|
||||
|
||||
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;
|
||||
|
||||
import com.instabug.library.IBGColorTheme;
|
||||
import com.instabug.library.IBGInvocationEvent;
|
||||
import com.instabug.library.Instabug;
|
||||
|
||||
public class RNInstabugReactnativePackage implements ReactPackage {
|
||||
|
||||
private String mToken;
|
||||
private Application mApplication;
|
||||
|
||||
private Instabug mInstagbug;
|
||||
private Instabug.Builder mBuilder;
|
||||
|
||||
public RNInstabugReactnativePackage(Instabug instabug) {
|
||||
this.mInstagbug = instabug;
|
||||
}
|
||||
|
||||
public RNInstabugReactnativePackage(Instabug.Builder builder) {
|
||||
this.mBuilder = builder;
|
||||
}
|
||||
|
||||
public RNInstabugReactnativePackage(String token, Application application) {
|
||||
this.mToken = token;
|
||||
this.mApplication = application;
|
||||
|
||||
mInstagbug = new Instabug.Builder(mApplication, mToken)
|
||||
.setDebugEnabled(true)
|
||||
.setEmailFieldRequired(false)
|
||||
.setFloatingButtonOffsetFromTop(400)
|
||||
.setColorTheme(IBGColorTheme.IBGColorThemeDark)
|
||||
.setInvocationEvent(IBGInvocationEvent.IBGInvocationEventFloatingButton)
|
||||
.setShouldShowIntroDialog(false)
|
||||
//.setInvocationEvent(IBGInvocationEvent.IBGInvocationEventShake)
|
||||
.build();
|
||||
|
||||
}
|
||||
@Override
|
||||
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
||||
List<NativeModule> modules = new ArrayList<>();
|
||||
modules.add(new RNInstabugReactnativeModule(reactContext, this.mInstagbug));
|
||||
return modules;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Class<? extends JavaScriptModule>> createJSModules() {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
|
||||
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";
|
||||
}
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
|
||||
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<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
||||
return Arrays.<NativeModule>asList(new RNInstabugReactnativeModule(reactContext));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Class<? extends JavaScriptModule>> createJSModules() {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
76
index.js
76
index.js
@ -1,6 +1,76 @@
|
||||
|
||||
import { NativeModules } from 'react-native';
|
||||
import {NativeModules} from 'react-native';
|
||||
|
||||
const { RNInstabugReactnative } = NativeModules;
|
||||
let {Instabug} = NativeModules;
|
||||
|
||||
export default RNInstabugReactnative;
|
||||
module.exports = {
|
||||
reportFeedback: function () {
|
||||
Instabug.report('feedback');
|
||||
},
|
||||
|
||||
reportBug: function () {
|
||||
Instabug.report('bug');
|
||||
},
|
||||
|
||||
/**
|
||||
* Adds tag(s) to issues before sending them
|
||||
* @param tags NOTICE: multiple tags with comma(,) split
|
||||
*/
|
||||
addTags: function (tags) {
|
||||
Instabug.addTags(tags);
|
||||
},
|
||||
|
||||
/**
|
||||
[CHINA/CHINESE/PRC/SIMPLIFIED_CHINESE -> CHINESE]
|
||||
[TAIWAN/TRADITIONAL_CHINESE -> TAIWAN]
|
||||
[ENGLISH -> ENGLISH]
|
||||
[UK -> UK]
|
||||
[US -> US]
|
||||
* @param languageTag
|
||||
*/
|
||||
changeLocale: function (languageTag) {
|
||||
Instabug.changeLocale(tags);
|
||||
},
|
||||
|
||||
/**
|
||||
* The file at filePath will be uploaded along upcoming reports with the name fileNameWithExtension
|
||||
* @param fileUri
|
||||
* @param fileNameWithExtension
|
||||
*/
|
||||
setFileAttachment: function (fileUri, fileNameWithExtension) {
|
||||
Instabug.setFileAttachment(fileUri, fileNameWithExtension);
|
||||
},
|
||||
|
||||
/**
|
||||
* If your app already acquires the user's email address and you provide it to this method,
|
||||
* Instabug will pre-fill the user email in reports.
|
||||
* @param userEmail
|
||||
*/
|
||||
setUserEmail: function (userEmail) {
|
||||
Instabug.setUserEmail(userEmail);
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets the user name that is used in the dashboard's contacts.
|
||||
* @param username
|
||||
*/
|
||||
setUsername: function (username) {
|
||||
Instabug.setUsername(username);
|
||||
},
|
||||
|
||||
/**
|
||||
* Adds specific user data that you need to be added to the reports
|
||||
* @param userData
|
||||
*/
|
||||
setUserData: function (userData) {
|
||||
Instabug.setUserData(userData);
|
||||
},
|
||||
|
||||
/**
|
||||
* Call this method to display the discovery dialog explaining the shake gesture or the two finger swipe gesture,
|
||||
* if you've enabled it i.e: This method is automatically called on first run of the application
|
||||
*/
|
||||
showIntroMessage: function () {
|
||||
Instabug.showIntroMessage();
|
||||
},
|
||||
};
|
41
package.json
41
package.json
@ -1,20 +1,43 @@
|
||||
|
||||
{
|
||||
"name": "react-native-instabug-reactnative",
|
||||
"name": "instabug-reactnative",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"description": "React Native plugin for integrating the Instabug SDK",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Instabug/instabug-reactnative.git"
|
||||
},
|
||||
"keywords": [
|
||||
"react-native"
|
||||
"react-native",
|
||||
"bug",
|
||||
"reporting",
|
||||
"feedback",
|
||||
"instabug",
|
||||
"sdk"
|
||||
],
|
||||
"author": "",
|
||||
"license": "",
|
||||
"peerDependencies": {
|
||||
"react-native": "^0.29.0",
|
||||
"react-native-windows": "^0.29.0"
|
||||
|
||||
"author": "Hossam Hassan && Yousef Hamza",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Instabug/instabug-reactnative/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Instabug/instabug-reactnative#readme",
|
||||
"rnpm": {
|
||||
"android": {
|
||||
"packageInstance": "new RNInstabugReactnativePackage(${androidApplicationToken}, MainApplication.this)"
|
||||
},
|
||||
"params": [
|
||||
{
|
||||
"type": "input",
|
||||
"name": "androidApplicationToken",
|
||||
"message": "What is your Instabug application token for Android (hit <ENTER> to ignore)"
|
||||
}
|
||||
],
|
||||
"commands": {
|
||||
"postlink": "node node_modules/instabug-reactnative/scripts/postlink/run"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
78
windows/.gitignore
vendored
78
windows/.gitignore
vendored
@ -1,78 +0,0 @@
|
||||
*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
|
@ -1,78 +0,0 @@
|
||||
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
|
||||
|
@ -1,30 +0,0 @@
|
||||
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)]
|
||||
|
@ -1,28 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file contains Runtime Directives, specifications about types your application accesses
|
||||
through reflection and other dynamic code patterns. Runtime Directives are used to control the
|
||||
.NET Native optimizer and ensure that it does not remove code accessed by your library. If your
|
||||
library does not do any reflection, then you generally do not need to edit this file. However,
|
||||
if your library reflects over types, especially types passed to it or derived from its types,
|
||||
then you should write Runtime Directives.
|
||||
The most common use of reflection in libraries is to discover information about types passed
|
||||
to the library. Runtime Directives have three ways to express requirements on types passed to
|
||||
your library.
|
||||
1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter
|
||||
Use these directives to reflect over types passed as a parameter.
|
||||
2. SubTypes
|
||||
Use a SubTypes directive to reflect over types derived from another type.
|
||||
3. AttributeImplies
|
||||
Use an AttributeImplies directive to indicate that your library needs to reflect over
|
||||
types or methods decorated with an attribute.
|
||||
For more information on writing Runtime Directives for libraries, please visit
|
||||
http://go.microsoft.com/fwlink/?LinkID=391919
|
||||
-->
|
||||
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||
<Library Name="RNInstabugReactnative">
|
||||
|
||||
<!-- add directives for your library here -->
|
||||
|
||||
</Library>
|
||||
</Directives>
|
@ -1,183 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{4CBC7390-8995-11E6-8D8A-F79CA2B6B98B}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>RNInstabugReactnative</RootNamespace>
|
||||
<AssemblyName>RNInstabugReactnative</AssemblyName>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||
<TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
|
||||
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
|
||||
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<ReactWindowsRoot>..\..\node_modules</ReactWindowsRoot>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' != 'Development'">
|
||||
<ReactWindowsRoot>..\..</ReactWindowsRoot>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\ARM\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<OutputPath>bin\ARM\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
|
||||
<None Include="project.json" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="RNInstabugReactnativeModule.cs" />
|
||||
<Compile Include="RNInstabugReactnativePackage.cs" />
|
||||
<EmbeddedResource Include="Properties\RNInstabugReactnative.rd.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="$(ReactWindowsRoot)\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj">
|
||||
<Project>{c7673ad5-e3aa-468c-a5fd-fa38154e205c}</Project>
|
||||
<Name>ReactNative</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
||||
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|AnyCPU'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\Development\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Development\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|ARM'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\ARM\Development\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Development\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
@ -1,33 +0,0 @@
|
||||
using ReactNative.Bridge;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Windows.ApplicationModel.Core;
|
||||
using Windows.UI.Core;
|
||||
|
||||
namespace Com.Reactlibrary.RNInstabugReactnative
|
||||
{
|
||||
/// <summary>
|
||||
/// A module that allows JS to share data.
|
||||
/// </summary>
|
||||
class RNInstabugReactnativeModule : NativeModuleBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Instantiates the <see cref="RNInstabugReactnativeModule"/>.
|
||||
/// </summary>
|
||||
internal RNInstabugReactnativeModule()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The name of the native module.
|
||||
/// </summary>
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return "RNInstabugReactnative";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
using ReactNative.Bridge;
|
||||
using ReactNative.Modules.Core;
|
||||
using ReactNative.UIManager;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Com.Reactlibrary.RNInstabugReactnative
|
||||
{
|
||||
/// <summary>
|
||||
/// Package defining core framework modules (e.g., <see cref="UIManagerModule"/>).
|
||||
/// 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).
|
||||
/// </summary>
|
||||
public class RNInstabugReactnativePackage : IReactPackage
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates the list of native modules to register with the react
|
||||
/// instance.
|
||||
/// </summary>
|
||||
/// <param name="reactContext">The react application context.</param>
|
||||
/// <returns>The list of native modules.</returns>
|
||||
public IReadOnlyList<INativeModule> CreateNativeModules(ReactContext reactContext)
|
||||
{
|
||||
return new List<INativeModule>
|
||||
{
|
||||
new RNInstabugReactnativeModule(),
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the list of JavaScript modules to register with the
|
||||
/// react instance.
|
||||
/// </summary>
|
||||
/// <returns>The list of JavaScript modules.</returns>
|
||||
public IReadOnlyList<Type> CreateJavaScriptModulesConfig()
|
||||
{
|
||||
return new List<Type>(0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the list of view managers that should be registered with
|
||||
/// the <see cref="UIManagerModule"/>.
|
||||
/// </summary>
|
||||
/// <param name="reactContext">The react application context.</param>
|
||||
/// <returns>The list of view managers.</returns>
|
||||
public IReadOnlyList<IViewManager> CreateViewManagers(
|
||||
ReactContext reactContext)
|
||||
{
|
||||
return new List<IViewManager>(0);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
{
|
||||
"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": {}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user