Skip to content

Commit

Permalink
updates both builds; rolls sdk version (#12)
Browse files Browse the repository at this point in the history
* updates both builds; rolls sdk version
  • Loading branch information
andrewxhill authored Sep 14, 2019
1 parent 9c4b5c0 commit 98a7f84
Show file tree
Hide file tree
Showing 10 changed files with 390 additions and 210 deletions.
12 changes: 10 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ android {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
include "armeabi-v7a", "arm64-v8a"
}
}
buildTypes {
Expand All @@ -135,16 +135,24 @@ android {
}
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
dexOptions {
javaMaxHeapSize "4g"
}
}

dependencies {
implementation project(':@textile_react-native-sdk')
compile project(':react-native-fs')
compile project(':react-native-background-timer')
compile project(':react-native-background-fetch')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules
implementation project(':@textile_react-native-sdk')
implementation project(':react-native-gesture-handler')
}

// Run this once to be able to run the application with BUCK
Expand Down
2 changes: 2 additions & 0 deletions android/app/src/main/java/com/tapp/MainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.app.Application;

import com.facebook.react.ReactApplication;
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
import com.rnfs.RNFSPackage;
import com.ocetnik.timer.BackgroundTimerPackage;
import com.transistorsoft.rnbackgroundfetch.RNBackgroundFetchPackage;
Expand All @@ -27,6 +28,7 @@ public boolean getUseDeveloperSupport() {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNGestureHandlerPackage(),
new RNFSPackage(),
new BackgroundTimerPackage(),
new RNBackgroundFetchPackage(),
Expand Down
9 changes: 6 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
buildscript {
ext {
buildToolsVersion = "28.0.2"
minSdkVersion = 16
minSdkVersion = 24
compileSdkVersion = 28
targetSdkVersion = 27
supportLibVersion = "28.0.0"
Expand All @@ -13,7 +13,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.android.tools.build:gradle:3.2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -25,6 +25,9 @@ allprojects {
mavenLocal()
google()
jcenter()
maven {
url "https://dl.bintray.com/textile/maven"
}
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
Expand All @@ -33,7 +36,7 @@ allprojects {
url "$rootDir/../node_modules/react-native-background-fetch/android/libs"
}
maven {
url "https://dl.bintray.com/textile/maven"
url 'https://jitpack.io'
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ include ':react-native-background-timer'
project(':react-native-background-timer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-timer/android')
include ':react-native-background-fetch'
project(':react-native-background-fetch').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-fetch/android')
include ':react-native-gesture-handler'
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android')
include ':@textile_react-native-sdk'
project(':@textile_react-native-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/@textile/react-native-sdk/android')
include ':app'
2 changes: 2 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ target 'TApp' do

# your other libraries will follow here!
pod 'textile-react-native-sdk', :path => '../node_modules/@textile/react-native-sdk'
pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'

end

# The following is needed to ensure the "archive" step works in XCode.
Expand Down
Loading

0 comments on commit 98a7f84

Please sign in to comment.