Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Remove react-native-native-modules dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrannp authored and mrtnzlml committed Jun 14, 2018
1 parent d2d2a49 commit 5314a4f
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion RNAndroidPlayground/dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
gradlePluginVersion = "3.0.1"

minSdkVersionVar = 19
minSdkVersionVar = 16
compileSdkVersionVar = 27
targetSdkVersionVar = 27
buildToolsVersionVar = "27.0.3"
Expand Down
25 changes: 12 additions & 13 deletions android/app/src/main/java/com/reactnativeapp/MainApplication.java
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
package com.reactnativeapp;

import android.app.Application;
import android.support.multidex.MultiDexApplication;

import com.facebook.react.ReactApplication;
import cl.json.RNSharePackage;
import cl.json.ShareApplication;
import org.wonday.pdf.RCTPdfView;
import com.RNFetchBlob.RNFetchBlobPackage;
import com.reactlibrary.RNTooltipsPackage;
import com.airbnb.android.react.maps.MapsPackage;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import com.oblador.vectoricons.VectorIconsPackage;
import com.airbnb.android.react.maps.MapsPackage;
import com.trinerdis.skypicker.colors.RNColorsPackage;
import com.trinerdis.skypicker.currency.RNCurrencyManagerPackage;
import com.trinerdis.skypicker.device.RNDeviceInfoPackage;
import com.trinerdis.skypicker.logging.RNLoggingPackage;
import com.trinerdis.skypicker.translation.*;
import com.reactlibrary.RNTooltipsPackage;
import com.skypicker.reactnative.nativemodules.currency.RNCurrencyManagerPackage;
import com.skypicker.reactnative.nativemodules.device.RNDeviceInfoPackage;
import com.skypicker.reactnative.nativemodules.logging.RNLoggingPackage;
import com.skypicker.reactnative.nativemodules.translation.RNTranslationManagerPackage;

import org.wonday.pdf.RCTPdfView;

import java.util.Arrays;
import java.util.List;

import cl.json.RNSharePackage;
import cl.json.ShareApplication;

public class MainApplication extends MultiDexApplication implements ShareApplication, ReactApplication {

private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
Expand All @@ -44,7 +44,6 @@ protected List<ReactPackage> getPackages() {
new MapsPackage(),
new RNLoggingPackage(),
new RNTranslationManagerPackage(),
new RNColorsPackage(),
new RNCurrencyManagerPackage(),
new RNDeviceInfoPackage()
);
Expand Down
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ buildscript {
}
dependencies {
classpath "com.android.tools.build:gradle:$gradlePluginVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
1 change: 1 addition & 0 deletions android/dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ext {
gradlePluginVersion = "3.0.1"
kotlinVersion = "1.2.31"

compileSdkVersionVar = 27
targetSdkVersionVar = 27
Expand Down
2 changes: 1 addition & 1 deletion android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ project(':react-native-vector-icons').projectDir = new File(rootProject.projectD
include ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
include ':react-native-native-modules'
project(':react-native-native-modules').projectDir = new File(rootProject.projectDir, '../node_modules/@kiwicom/react-native-native-modules/android')
project(':react-native-native-modules').projectDir = new File(rootProject.projectDir, '../RNAndroidPlayground/react-native-native-modules/')

include ':app'
1 change: 0 additions & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"dependencies": {
"@kiwicom/mobile-accessibility": "^0",
"@kiwicom/mobile-localization": "^0",
"@kiwicom/react-native-native-modules": "^0.1.25",
"@ptomasroos/react-native-multi-slider": "^0.0.14",
"react-native-image-progress": "^1.1.0",
"react-native-modal": "^6.0.0",
Expand Down
4 changes: 0 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,6 @@
lodash "^4.2.0"
to-fast-properties "^2.0.0"

"@kiwicom/react-native-native-modules@^0.1.25":
version "0.1.25"
resolved "https://registry.yarnpkg.com/@kiwicom/react-native-native-modules/-/react-native-native-modules-0.1.25.tgz#0668621aac2ba64d22a23328612de4f8ca8f1f75"

"@mrmlnc/readdir-enhanced@^2.2.1":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde"
Expand Down

0 comments on commit 5314a4f

Please sign in to comment.