File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # remove survey and featureRequest features in JavaScript files
3
+ deletedFeaturesFilesInJavaScript=(" Surveys" " FeatureRequests" " Survey" )
4
+ for feature in " ${deletedFeaturesFilesInJavaScript[@]} " ; do
5
+ echo " $feature "
6
+ rm -f ../src/modules/" $feature " .ts
7
+ rm -f ../test/mocks/mock" $feature " .ts
8
+ gsed -i " s/import..*$feature ';//g" ../src/index.ts
9
+ gsed -i " s/$feature ,//g" ../src/index.ts
10
+
11
+ done
12
+ npx eslint ../src/index.ts --fix
13
+
14
+ # remove survey and featureRequest features in Android files
15
+ deletedFeaturesFilesInAndroidApp=(" RNInstabugSurveysModule" " RNInstabugFeatureRequestsModule" )
16
+ for feature in " ${deletedFeaturesFilesInAndroidApp[@]} " ; do
17
+ echo " $feature "
18
+ rm -f ../android/src/main/java/com/instabug/reactlibrary/" $feature " .java
19
+ rm -f ../android/src/test/java/com/instabug/reactlibrary/" $feature " Test.java
20
+ gsed -i " s/modules.add(new $feature (reactContext));//g" ../android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativePackage.java
21
+
22
+ done
23
+
24
+ # remove survey and featureRequest features in IOS files
25
+ deletedFeaturesFilesInIosApp=(" InstabugSurveysBridge" " InstabugFeatureRequestsBridge" )
26
+ for feature in " ${deletedFeaturesFilesInIosApp[@]} " ; do
27
+ echo " $feature "
28
+ rm -f ../ios/RNInstabug/" $feature " .h
29
+ rm -f ../ios/RNInstabug/" $feature " .m
30
+ done
31
+
32
+
33
+ rm -rf ' ../examples'
34
+
35
+
36
+
You can’t perform that action at this time.
0 commit comments