From ea3e2e46ecbcb1eab3e9915eb4a4cd563848af5c Mon Sep 17 00:00:00 2001 From: shahen94 Date: Mon, 14 Nov 2016 00:21:42 +0400 Subject: [PATCH] refactor(All Project): Changed Name Changed repo name, added init script, changed react-native-video-editor to react-native-video-processing --- README.md | 2 +- ...dule.java => RNVideoProcessingModule.java} | 6 ++-- ...age.java => RNVideoProcessingPackage.java} | 4 +-- index.js | 4 +-- init/index.js | 7 ++++ ios/RNVideoEditor.h | 7 ---- ios/RNVideoProcessing.h | 7 ++++ ios/{RNVideoEditor.m => RNVideoProcessing.m} | 4 +-- .../project.pbxproj | 36 +++++++++---------- package.json | 6 ++-- 10 files changed, 45 insertions(+), 38 deletions(-) rename android/src/main/java/com/shahenlibrary/{RNVideoEditorModule.java => RNVideoProcessingModule.java} (69%) rename android/src/main/java/com/shahenlibrary/{RNVideoEditorPackage.java => RNVideoProcessingPackage.java} (83%) create mode 100644 init/index.js delete mode 100644 ios/RNVideoEditor.h create mode 100644 ios/RNVideoProcessing.h rename ios/{RNVideoEditor.m => RNVideoProcessing.m} (62%) rename ios/{RNVideoEditor.xcodeproj => RNVideoProcessing.xcodeproj}/project.pbxproj (82%) diff --git a/README.md b/README.md index 7cc9d5c2..9de198ee 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ #Library is under constructing -# react-native-video-editor [![Build Status](https://travis-ci.org/shahen94/react-native-video-editor.svg?branch=master)](https://travis-ci.org/shahen94/react-native-video-editor) +# react-native-video-processing [![Build Status](https://travis-ci.org/shahen94/react-native-video-processing.svg?branch=master)](https://travis-ci.org/shahen94/react-native-video-processing) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=plastic)](https://github.com/semantic-release/semantic-release) diff --git a/android/src/main/java/com/shahenlibrary/RNVideoEditorModule.java b/android/src/main/java/com/shahenlibrary/RNVideoProcessingModule.java similarity index 69% rename from android/src/main/java/com/shahenlibrary/RNVideoEditorModule.java rename to android/src/main/java/com/shahenlibrary/RNVideoProcessingModule.java index 8676bba4..72685e8c 100644 --- a/android/src/main/java/com/shahenlibrary/RNVideoEditorModule.java +++ b/android/src/main/java/com/shahenlibrary/RNVideoProcessingModule.java @@ -6,17 +6,17 @@ import com.facebook.react.bridge.ReactMethod; import com.facebook.react.bridge.Callback; -public class RNVideoEditorModule extends ReactContextBaseJavaModule { +public class RNVideoProcessingModule extends ReactContextBaseJavaModule { private final ReactApplicationContext reactContext; - public RNVideoEditorModule(ReactApplicationContext reactContext) { + public RNVideoProcessingModule(ReactApplicationContext reactContext) { super(reactContext); this.reactContext = reactContext; } @Override public String getName() { - return "RNVideoEditor"; + return "RNVideoProcessing"; } } \ No newline at end of file diff --git a/android/src/main/java/com/shahenlibrary/RNVideoEditorPackage.java b/android/src/main/java/com/shahenlibrary/RNVideoProcessingPackage.java similarity index 83% rename from android/src/main/java/com/shahenlibrary/RNVideoEditorPackage.java rename to android/src/main/java/com/shahenlibrary/RNVideoProcessingPackage.java index 4a3cd66c..8448df4a 100644 --- a/android/src/main/java/com/shahenlibrary/RNVideoEditorPackage.java +++ b/android/src/main/java/com/shahenlibrary/RNVideoProcessingPackage.java @@ -10,10 +10,10 @@ import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.uimanager.ViewManager; import com.facebook.react.bridge.JavaScriptModule; -public class RNVideoEditorPackage implements ReactPackage { +public class RNVideoProcessingPackage implements ReactPackage { @Override public List createNativeModules(ReactApplicationContext reactContext) { - return Arrays.asList(new RNVideoEditorModule(reactContext)); + return Arrays.asList(new RNVideoProcessingModule(reactContext)); } @Override diff --git a/index.js b/index.js index d08630bd..e00b53c3 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ import { NativeModules } from 'react-native'; -const { RNVideoEditor } = NativeModules; +const { RNVideoProcessing } = NativeModules; -export default RNVideoEditor; +export default RNVideoProcessing; diff --git a/init/index.js b/init/index.js new file mode 100644 index 00000000..d0567cfb --- /dev/null +++ b/init/index.js @@ -0,0 +1,7 @@ +const createLibrary = require('react-native-create-library'); + +createLibrary({ + name: 'VideoProcessing', + platforms: ['ios', 'android'], + packageIdentifier: 'com.shahenlibrary' +}); diff --git a/ios/RNVideoEditor.h b/ios/RNVideoEditor.h deleted file mode 100644 index 20b642f8..00000000 --- a/ios/RNVideoEditor.h +++ /dev/null @@ -1,7 +0,0 @@ - -#import "RCTBridgeModule.h" - -@interface RNVideoEditor : NSObject - -@end - \ No newline at end of file diff --git a/ios/RNVideoProcessing.h b/ios/RNVideoProcessing.h new file mode 100644 index 00000000..da95c101 --- /dev/null +++ b/ios/RNVideoProcessing.h @@ -0,0 +1,7 @@ + +#import "RCTBridgeModule.h" + +@interface RNVideoProcessing : NSObject + +@end + \ No newline at end of file diff --git a/ios/RNVideoEditor.m b/ios/RNVideoProcessing.m similarity index 62% rename from ios/RNVideoEditor.m rename to ios/RNVideoProcessing.m index 72206159..98c13a14 100644 --- a/ios/RNVideoEditor.m +++ b/ios/RNVideoProcessing.m @@ -1,7 +1,7 @@ -#import "RNVideoEditor.h" +#import "RNVideoProcessing.h" -@implementation RNVideoEditor +@implementation RNVideoProcessing - (dispatch_queue_t)methodQueue { diff --git a/ios/RNVideoEditor.xcodeproj/project.pbxproj b/ios/RNVideoProcessing.xcodeproj/project.pbxproj similarity index 82% rename from ios/RNVideoEditor.xcodeproj/project.pbxproj rename to ios/RNVideoProcessing.xcodeproj/project.pbxproj index 337cd989..74414317 100644 --- a/ios/RNVideoEditor.xcodeproj/project.pbxproj +++ b/ios/RNVideoProcessing.xcodeproj/project.pbxproj @@ -7,7 +7,7 @@ objects = { /* Begin PBXBuildFile section */ - B3E7B58A1CC2AC0600A0062D /* RNVideoEditor.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNVideoEditor.m */; }; + B3E7B58A1CC2AC0600A0062D /* RNVideoProcessing.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNVideoProcessing.m */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -23,9 +23,9 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 134814201AA4EA6300B7C361 /* libRNVideoEditor.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNVideoEditor.a; sourceTree = BUILT_PRODUCTS_DIR; }; - B3E7B5881CC2AC0600A0062D /* RNVideoEditor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNVideoEditor.h; sourceTree = ""; }; - B3E7B5891CC2AC0600A0062D /* RNVideoEditor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNVideoEditor.m; sourceTree = ""; }; + 134814201AA4EA6300B7C361 /* libRNVideoProcessing.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNVideoProcessing.a; sourceTree = BUILT_PRODUCTS_DIR; }; + B3E7B5881CC2AC0600A0062D /* RNVideoProcessing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNVideoProcessing.h; sourceTree = ""; }; + B3E7B5891CC2AC0600A0062D /* RNVideoProcessing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNVideoProcessing.m; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -42,7 +42,7 @@ 134814211AA4EA7D00B7C361 /* Products */ = { isa = PBXGroup; children = ( - 134814201AA4EA6300B7C361 /* libRNVideoEditor.a */, + 134814201AA4EA6300B7C361 /* libRNVideoProcessing.a */, ); name = Products; sourceTree = ""; @@ -50,8 +50,8 @@ 58B511D21A9E6C8500147676 = { isa = PBXGroup; children = ( - B3E7B5881CC2AC0600A0062D /* RNVideoEditor.h */, - B3E7B5891CC2AC0600A0062D /* RNVideoEditor.m */, + B3E7B5881CC2AC0600A0062D /* RNVideoProcessing.h */, + B3E7B5891CC2AC0600A0062D /* RNVideoProcessing.m */, 134814211AA4EA7D00B7C361 /* Products */, ); sourceTree = ""; @@ -59,9 +59,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 58B511DA1A9E6C8500147676 /* RNVideoEditor */ = { + 58B511DA1A9E6C8500147676 /* RNVideoProcessing */ = { isa = PBXNativeTarget; - buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNVideoEditor" */; + buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNVideoProcessing" */; buildPhases = ( 58B511D71A9E6C8500147676 /* Sources */, 58B511D81A9E6C8500147676 /* Frameworks */, @@ -71,9 +71,9 @@ ); dependencies = ( ); - name = RNVideoEditor; + name = RNVideoProcessing; productName = RCTDataManager; - productReference = 134814201AA4EA6300B7C361 /* libRNVideoEditor.a */; + productReference = 134814201AA4EA6300B7C361 /* libRNVideoProcessing.a */; productType = "com.apple.product-type.library.static"; }; /* End PBXNativeTarget section */ @@ -90,7 +90,7 @@ }; }; }; - buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNVideoEditor" */; + buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNVideoProcessing" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; @@ -102,7 +102,7 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 58B511DA1A9E6C8500147676 /* RNVideoEditor */, + 58B511DA1A9E6C8500147676 /* RNVideoProcessing */, ); }; /* End PBXProject section */ @@ -112,7 +112,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - B3E7B58A1CC2AC0600A0062D /* RNVideoEditor.m in Sources */, + B3E7B58A1CC2AC0600A0062D /* RNVideoProcessing.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -204,7 +204,7 @@ ); LIBRARY_SEARCH_PATHS = "$(inherited)"; OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = RNVideoEditor; + PRODUCT_NAME = RNVideoProcessing; SKIP_INSTALL = YES; }; name = Debug; @@ -220,7 +220,7 @@ ); LIBRARY_SEARCH_PATHS = "$(inherited)"; OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = RNVideoEditor; + PRODUCT_NAME = RNVideoProcessing; SKIP_INSTALL = YES; }; name = Release; @@ -228,7 +228,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNVideoEditor" */ = { + 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNVideoProcessing" */ = { isa = XCConfigurationList; buildConfigurations = ( 58B511ED1A9E6C8500147676 /* Debug */, @@ -237,7 +237,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNVideoEditor" */ = { + 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNVideoProcessing" */ = { isa = XCConfigurationList; buildConfigurations = ( 58B511F01A9E6C8500147676 /* Debug */, diff --git a/package.json b/package.json index 281948d2..6c4876f3 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/shahen94/react-native-video-editor.git" + "url": "https://github.com/shahen94/react-native-video-processing.git" }, "keywords": [ "react", @@ -28,12 +28,12 @@ "author": "Shahen Hovhannisyan ", "license": "MIT", "bugs": { - "url": "https://github.com/shahen94/react-native-video-editor/issues" + "url": "https://github.com/shahen94/react-native-video-processing/issues" }, "jest": { "preset": "jest-react-native" }, - "homepage": "https://github.com/shahen94/react-native-video-editor#readme", + "homepage": "https://github.com/shahen94/react-native-video-processing#readme", "dependencies": { "babel-preset-es2015": "6.18.0", "babel-preset-react": "6.16.0",