Skip to content

Commit fef72ef

Browse files
committed
manage zip4j via gradle
1 parent 256a8b8 commit fef72ef

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ repositories {
3232

3333
dependencies {
3434
implementation "com.facebook.react:react-native:+"
35-
implementation files('libs/zip4j-1.3.3.jar')
35+
implementation "net.lingala:zip4j:1.3.3"
3636
}

android/libs/zip4j-1.3.3.jar

-134 KB
Binary file not shown.

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ android {
137137
}
138138

139139
dependencies {
140-
implementation project(':react-native-zip-archive')
141140
implementation project(':react-native-custom-tabs')
141+
implementation project(':react-native-zip-archive')
142142
implementation project(':react-native-fs')
143143
implementation project(':react-native-document-picker')
144144
implementation fileTree(dir: "libs", include: ["*.jar"])

example/android/app/src/main/java/com/example/MainApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import android.app.Application;
44

55
import com.facebook.react.ReactApplication;
6-
import com.rnziparchive.RNZipArchivePackage;
76
import com.github.droibit.android.reactnative.customtabs.CustomTabsPackage;
7+
import com.rnziparchive.RNZipArchivePackage;
88
import com.rnfs.RNFSPackage;
99
import com.reactnativedocumentpicker.ReactNativeDocumentPicker;
1010
import com.facebook.react.ReactNativeHost;
@@ -27,8 +27,8 @@ public boolean getUseDeveloperSupport() {
2727
protected List<ReactPackage> getPackages() {
2828
return Arrays.<ReactPackage>asList(
2929
new MainReactPackage(),
30-
new RNZipArchivePackage(),
3130
new CustomTabsPackage(),
31+
new RNZipArchivePackage(),
3232
new RNFSPackage(),
3333
new ReactNativeDocumentPicker()
3434
);

example/android/settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
rootProject.name = 'example'
2-
include ':react-native-zip-archive'
3-
project(':react-native-zip-archive').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-zip-archive/android')
42
include ':react-native-custom-tabs'
53
project(':react-native-custom-tabs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-custom-tabs/android')
4+
include ':react-native-zip-archive'
5+
project(':react-native-zip-archive').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-zip-archive/android')
66
include ':react-native-fs'
77
project(':react-native-fs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fs/android')
88
include ':react-native-document-picker'

0 commit comments

Comments
 (0)