Skip to content

Commit b5910c1

Browse files
author
Rohit Singh
committed
Video Cutter file added
1 parent b753949 commit b5910c1

File tree

605 files changed

+35945
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

605 files changed

+35945
-0
lines changed

android/app/build.gradle

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
apply plugin: "com.android.application"
2+
apply plugin: 'com.google.gms.google-services'
3+
apply plugin: 'com.google.firebase.crashlytics'
4+
apply plugin: 'kotlin-android'
5+
6+
android {
7+
compileSdkVersion 29
8+
9+
compileOptions {
10+
sourceCompatibility JavaVersion.VERSION_1_8
11+
targetCompatibility JavaVersion.VERSION_1_8
12+
}
13+
lintOptions {
14+
checkReleaseBuilds false
15+
}
16+
17+
defaultConfig {
18+
applicationId "com.videocutter"
19+
minSdkVersion rootProject.ext.minSdkVersion
20+
targetSdkVersion rootProject.ext.targetSdkVersion
21+
versionCode 13
22+
versionName "2.5"
23+
multiDexEnabled true
24+
vectorDrawables.useSupportLibrary = true
25+
26+
}
27+
28+
compileOptions {
29+
sourceCompatibility JavaVersion.VERSION_1_8
30+
targetCompatibility JavaVersion.VERSION_1_8
31+
}
32+
33+
android {
34+
dexOptions {
35+
javaMaxHeapSize "4g"
36+
}
37+
}
38+
39+
40+
signingConfigs {
41+
debug {
42+
storeFile file('debug.keystore')
43+
storePassword 'android'
44+
keyAlias 'androiddebugkey'
45+
keyPassword 'android'
46+
}
47+
48+
}
49+
buildTypes {
50+
debug {
51+
signingConfig signingConfigs.debug
52+
}
53+
release {
54+
// Caution! In production, you need to generate your own keystore file.
55+
// see https://reactnative.dev/docs/signed-apk-android.
56+
signingConfig signingConfigs.debug
57+
// minifyEnabled enableProguardInReleaseBuilds
58+
// shrinkResources true
59+
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
60+
}
61+
}
62+
63+
64+
dependencies {
65+
implementation fileTree(dir: "libs", include: ["*.jar"])
66+
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
67+
implementation platform('com.google.firebase:firebase-bom:26.0.0')
68+
implementation 'com.google.firebase:firebase-analytics'
69+
implementation 'com.google.firebase:firebase-crashlytics'
70+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
71+
implementation 'androidx.appcompat:appcompat:1.2.0'
72+
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
73+
implementation 'com.google.android.material:material:1.2.0'
74+
75+
implementation 'com.android.support:multidex:1.0.3'
76+
77+
78+
//Butterknife
79+
implementation 'com.jakewharton:butterknife:10.0.0'
80+
annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
81+
82+
implementation 'com.github.bumptech.glide:glide:4.11.0'
83+
84+
85+
//Video Audio parse
86+
implementation 'com.googlecode.mp4parser:isoparser:1.1.21'
87+
implementation 'org.apache.commons:commons-io:1.3.2'
88+
89+
//circle_image
90+
implementation 'de.hdodenhof:circleimageview:3.1.0'
91+
implementation 'com.intuit.sdp:sdp-android:1.0.6'
92+
93+
implementation 'com.github.carlosmuvi:SegmentedProgressBar:0.6.0'
94+
95+
implementation 'com.wonderkiln:camerakit:0.13.4'
96+
97+
98+
//Gallery-Camera picker
99+
implementation 'com.github.jkwiecien:EasyImage:2.0.4'
100+
101+
102+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
103+
104+
105+
implementation 'androidx.recyclerview:recyclerview:1.1.0'
106+
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
107+
implementation project(':photoeditor')
108+
109+
implementation project(':video-effect')
110+
// implementation project(':video-compressor')
111+
112+
//rasheed implemented for gridview
113+
// implementation project(':raaz_asymmetric_grid_fuction')
114+
implementation project(':gpuv')
115+
implementation project(':videotrimmer')
116+
implementation 'com.google.android.exoplayer:exoplayer-core:2.8.4'
117+
implementation 'com.google.android.exoplayer:exoplayer-ui:2.8.4'
118+
implementation 'com.google.android.exoplayer:exoplayer:2.10.4'
119+
implementation 'com.arthenica:mobile-ffmpeg-full-gpl:4.4.LTS'
120+
implementation "org.jcodec:jcodec-android:0.1.9"
121+
implementation 'com.github.yalantis:ucrop:2.2.8'
122+
123+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
124+
125+
126+
}
127+
}

android/app/proguard-rules.pro

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools">
4+
5+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
6+
7+
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" />
8+
</manifest>
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
5+
* directory of this source tree.
6+
*/
7+
package com.videocutter;
8+
9+
import android.content.Context;
10+
import com.facebook.flipper.android.AndroidFlipperClient;
11+
import com.facebook.flipper.android.utils.FlipperUtils;
12+
import com.facebook.flipper.core.FlipperClient;
13+
import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14+
import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15+
import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16+
import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17+
import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18+
import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19+
import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20+
import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
21+
import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
22+
import com.facebook.react.ReactInstanceManager;
23+
import com.facebook.react.bridge.ReactContext;
24+
import com.facebook.react.modules.network.NetworkingModule;
25+
import okhttp3.OkHttpClient;
26+
27+
public class ReactNativeFlipper {
28+
public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
29+
if (FlipperUtils.shouldEnableFlipper(context)) {
30+
final FlipperClient client = AndroidFlipperClient.getInstance(context);
31+
32+
client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
33+
client.addPlugin(new ReactFlipperPlugin());
34+
client.addPlugin(new DatabasesFlipperPlugin(context));
35+
client.addPlugin(new SharedPreferencesFlipperPlugin(context));
36+
client.addPlugin(CrashReporterPlugin.getInstance());
37+
38+
NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
39+
NetworkingModule.setCustomClientBuilder(
40+
new NetworkingModule.CustomClientBuilder() {
41+
@Override
42+
public void apply(OkHttpClient.Builder builder) {
43+
builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
44+
}
45+
});
46+
client.addPlugin(networkFlipperPlugin);
47+
client.start();
48+
49+
// Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
50+
// Hence we run if after all native modules have been initialized
51+
ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
52+
if (reactContext == null) {
53+
reactInstanceManager.addReactInstanceEventListener(
54+
new ReactInstanceManager.ReactInstanceEventListener() {
55+
@Override
56+
public void onReactContextInitialized(ReactContext reactContext) {
57+
reactInstanceManager.removeReactInstanceEventListener(this);
58+
reactContext.runOnNativeModulesQueueThread(
59+
new Runnable() {
60+
@Override
61+
public void run() {
62+
client.addPlugin(new FrescoFlipperPlugin());
63+
}
64+
});
65+
}
66+
});
67+
} else {
68+
client.addPlugin(new FrescoFlipperPlugin());
69+
}
70+
}
71+
}
72+
}
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
package="com.videocutter">
4+
5+
<uses-feature
6+
android:name="android.hardware.camera2.full"
7+
android:required="false"
8+
tools:ignore="ManifestOrder" />
9+
<uses-feature android:name="android.hardware.camera.autofocus" />
10+
<uses-feature android:name="android.hardware.camera" />
11+
<uses-feature
12+
android:name="android.hardware.camera.front"
13+
android:required="false" />
14+
<uses-feature
15+
android:name="android.hardware.microphone"
16+
android:required="false" />
17+
18+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
19+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
20+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
21+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
22+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
23+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
24+
<uses-permission android:name="android.permission.CAMERA" />
25+
<uses-permission android:name="android.permission.CALL_PHONE" />
26+
<uses-permission android:name="android.permission.INTERNET" />
27+
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
28+
<uses-permission android:name="android.permission.FLASHLIGHT" /> <!-- <permission android:name="android.permission.FLASHLIGHT" -->
29+
<!-- android:permissionGroup="android.permission-group.HARDWARE_CONTROLS" -->
30+
<!-- android:protectionLevel="normal"/> -->
31+
<uses-permission android:name="android.permission.RECORD_VIDEO" />
32+
<uses-permission android:name="android.permission.RECORD_AUDIO" />
33+
34+
<permission
35+
android:name="android.permission.FLASHLIGHT"
36+
android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
37+
android:protectionLevel="normal" />
38+
39+
<uses-permission android:name="android.permission.READ_CONTACTS" />
40+
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
41+
42+
<application
43+
android:name="com.videocutter.MainApplication"
44+
android:allowBackup="false"
45+
android:extractNativeLibs="true"
46+
android:icon="@mipmap/ic_launcher"
47+
android:label="@string/app_name"
48+
android:largeHeap="true"
49+
android:requestLegacyExternalStorage="true"
50+
android:roundIcon="@mipmap/ic_launcher_round"
51+
android:theme="@style/AppTheme"
52+
tools:replace="android:allowBackup">
53+
54+
<activity
55+
android:name="com.videocutter.SelectActivity"
56+
android:label="@string/app_name"
57+
android:theme="@style/AppTheme">
58+
<intent-filter>
59+
<action android:name="android.intent.action.MAIN" />
60+
<category android:name="android.intent.category.LAUNCHER" />
61+
</intent-filter>
62+
</activity>
63+
64+
<activity
65+
android:name="com.videocutter.photoeditor.EditImageActivity"
66+
android:screenOrientation="portrait">
67+
<!-- <intent-filter>
68+
<action android:name="android.intent.action.MAIN" />
69+
70+
<category android:name="android.intent.category.LAUNCHER" />
71+
</intent-filter> -->
72+
73+
<!-- <intent-filter
74+
android:label="@string/app_intent_name"
75+
android:scheme="file"
76+
tools:ignore="AppLinkUrlError">
77+
<action android:name="android.intent.action.VIEW" />
78+
<category android:name="android.intent.category.DEFAULT" />
79+
<data android:mimeType="image/*" />
80+
</intent-filter>-->
81+
82+
</activity>
83+
84+
85+
<activity
86+
android:name="com.videocutter.videodub_addsound.VideoDubRecord_Activity_new"
87+
android:screenOrientation="portrait" />
88+
<!-- <intent-filter>
89+
<action android:name="android.intent.action.MAIN" />
90+
91+
<category android:name="android.intent.category.LAUNCHER" />
92+
</intent-filter> -->
93+
<activity
94+
android:name="com.videocutter.videodub_addsound.dubvideopreview.DubbedVideoPreview_Activity"
95+
android:screenOrientation="portrait" />
96+
<activity
97+
android:name="com.videocutter.videodub_addsound.MainActivity"
98+
android:screenOrientation="portrait" />
99+
100+
<provider
101+
android:name="androidx.core.content.FileProvider"
102+
android:authorities="com.videocutter.provider"
103+
android:exported="false"
104+
android:grantUriPermissions="true">
105+
<meta-data
106+
android:name="android.support.FILE_PROVIDER_PATHS"
107+
android:resource="@xml/provider_paths" />
108+
</provider>
109+
110+
<!-- <meta-data android:name="com.bugsnag.android.API_KEY" android:value="0e73da2987237d9ea395b2054365f129" /> -->
111+
112+
</application>
113+
114+
</manifest>
156 KB
Loading
153 KB
Loading
136 KB
Loading
158 KB
Loading
152 KB
Loading

0 commit comments

Comments
 (0)