2
0
mirror of synced 2025-02-20 01:58:09 +00:00

[tests][android] update to latest dependencies + fix build issues

This commit is contained in:
Salakar 2018-05-12 21:16:40 +01:00
parent 6848044f13
commit e45db1a465
5 changed files with 99 additions and 83 deletions

View File

@ -15,7 +15,7 @@ def enableProguardInReleaseBuilds = false
android { android {
compileSdkVersion 27 compileSdkVersion 27
buildToolsVersion '27.0.2' // buildToolsVersion '27.0.2'
defaultConfig { defaultConfig {
applicationId "com.testing" applicationId "com.testing"
@ -80,36 +80,45 @@ android {
dependencies { dependencies {
//noinspection GradleDynamicVersion //noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation(project(':react-native-firebase')) { implementation(project(':react-native-firebase')) {
transitive = false transitive = false
} }
implementation(project(':bridge')) {
implementation project(':bridge') transitive = false
}
implementation fileTree(dir: "libs", include: ["*.jar"]) implementation fileTree(dir: "libs", include: ["*.jar"])
implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') { implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
transitive = true transitive = true
} }
implementation "com.google.android.gms:play-services-base:15.0.0"
implementation "com.google.firebase:firebase-ads:15.0.0" // RNFirebase required dependencies
implementation "com.google.firebase:firebase-auth:15.1.0"
implementation "com.google.firebase:firebase-config:15.0.0"
implementation "com.google.firebase:firebase-core:15.0.2" implementation "com.google.firebase:firebase-core:15.0.2"
implementation "com.google.android.gms:play-services-base:15.0.1"
// RNFirebase optional dependencies
implementation "com.google.firebase:firebase-ads:15.0.1"
implementation "com.google.firebase:firebase-auth:15.1.0"
implementation "com.google.firebase:firebase-config:15.0.2"
implementation "com.google.firebase:firebase-crash:15.0.2" implementation "com.google.firebase:firebase-crash:15.0.2"
implementation "com.google.firebase:firebase-database:15.0.0" implementation "com.google.firebase:firebase-database:15.0.1"
implementation "com.google.firebase:firebase-firestore:16.0.0" implementation "com.google.firebase:firebase-firestore:16.0.0"
implementation "com.google.firebase:firebase-functions:15.0.0" implementation "com.google.firebase:firebase-functions:15.0.0"
implementation "com.google.firebase:firebase-invites:15.0.1" // implementation "com.google.firebase:firebase-invites:15.0.1"
implementation "com.google.firebase:firebase-storage:15.0.2" implementation "com.google.firebase:firebase-storage:15.0.2"
implementation "com.google.firebase:firebase-messaging:15.0.2" implementation "com.google.firebase:firebase-messaging:15.0.2"
implementation "com.google.firebase:firebase-perf:15.1.0" implementation "com.google.firebase:firebase-perf:15.2.0"
implementation "com.facebook.react:react-native:+"
implementation "com.android.support:appcompat-v7:27.1.0" implementation "com.android.support:appcompat-v7:27.1.0"
implementation 'com.android.support:support-annotations:27.1.1'
implementation fileTree(dir: "libs", include: ["*.jar"]) implementation fileTree(dir: "libs", include: ["*.jar"])
// Tests
androidTestImplementation(project(path: ":detox")) androidTestImplementation(project(path: ":detox"))
androidTestImplementation 'junit:junit:4.12' androidTestImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test:rules:1.0.1' androidTestImplementation 'com.android.support.test:rules:1.0.2'
} }
// Run this once to be able to run the application with BUCK // Run this once to be able to run the application with BUCK

View File

@ -1,71 +1,84 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.testing"> xmlns:tools="http://schemas.android.com/tools"
package="com.testing">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> <uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.SYSTEM_OVERLAY_WINDOW" /> <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.SYSTEM_OVERLAY_WINDOW" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application <application
android:name="com.testing.MainApplication" android:name="com.testing.MainApplication"
android:allowBackup="true" android:allowBackup="false"
android:icon="@drawable/ic_launcher" android:icon="@drawable/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:launchMode="singleTask" android:launchMode="singleTask"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<service <service
android:name="io.invertase.firebase.messaging.RNFirebaseMessagingService" android:name="io.invertase.firebase.messaging.RNFirebaseMessagingService"
android:enabled="true" android:enabled="true"
android:exported="true"> android:exported="true"
<intent-filter> tools:ignore="ExportedService">
<action android:name="com.google.firebase.MESSAGING_EVENT" /> <intent-filter>
</intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT" />
</service> </intent-filter>
</service>
<service android:name="io.invertase.firebase.messaging.RNFirebaseInstanceIdService" android:exported="false"> <service
<intent-filter> android:name="io.invertase.firebase.messaging.RNFirebaseInstanceIdService"
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/> android:exported="false">
</intent-filter> <intent-filter>
</service> <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
<service android:name="io.invertase.firebase.messaging.RNFirebaseBackgroundMessagingService" /> <service android:name="io.invertase.firebase.messaging.RNFirebaseBackgroundMessagingService" />
<receiver android:name="io.invertase.firebase.notifications.RNFirebaseNotificationReceiver"/> <receiver android:name="io.invertase.firebase.notifications.RNFirebaseNotificationReceiver" />
<receiver android:enabled="true" android:exported="true" android:name="io.invertase.firebase.notifications.RNFirebaseNotificationsRebootReceiver"> <receiver
<intent-filter> android:name="io.invertase.firebase.notifications.RNFirebaseNotificationsRebootReceiver"
<action android:name="android.intent.action.BOOT_COMPLETED"/> android:enabled="true"
<action android:name="android.intent.action.QUICKBOOT_POWERON"/> android:exported="true">
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/> <intent-filter>
<category android:name="android.intent.category.DEFAULT" /> <action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter> <action android:name="android.intent.action.QUICKBOOT_POWERON" />
</receiver> <action android:name="com.htc.intent.action.QUICKBOOT_POWERON" />
<!-- App Links --> <category android:name="android.intent.category.DEFAULT" />
<intent-filter android:autoVerify="true"> </intent-filter>
<action android:name="android.intent.action.VIEW" /> </receiver>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="je786.app.goo.gl" android:scheme="http"/>
<data android:host="je786.app.goo.gl" android:scheme="https"/>
</intent-filter>
<activity
android:name="com.testing.MainActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
<activity
android:name="com.testing.MainActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- App Links -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="je786.app.goo.gl"
android:scheme="http" />
<data
android:host="je786.app.goo.gl"
android:scheme="https" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
</manifest> </manifest>

View File

@ -21,7 +21,7 @@ import io.invertase.firebase.firestore.RNFirebaseFirestorePackage;
import io.invertase.firebase.functions.RNFirebaseFunctionsPackage; import io.invertase.firebase.functions.RNFirebaseFunctionsPackage;
import io.invertase.firebase.instanceid.RNFirebaseInstanceIdPackage; import io.invertase.firebase.instanceid.RNFirebaseInstanceIdPackage;
import io.invertase.firebase.invites.RNFirebaseInvitesPackage; import io.invertase.firebase.invites.RNFirebaseInvitesPackage;
import io.invertase.firebase.links.RNFirebaseLinksPackage; //import io.invertase.firebase.links.RNFirebaseLinksPackage;
import io.invertase.firebase.messaging.RNFirebaseMessagingPackage; import io.invertase.firebase.messaging.RNFirebaseMessagingPackage;
import io.invertase.firebase.notifications.RNFirebaseNotificationsPackage; import io.invertase.firebase.notifications.RNFirebaseNotificationsPackage;
import io.invertase.firebase.perf.RNFirebasePerformancePackage; import io.invertase.firebase.perf.RNFirebasePerformancePackage;
@ -55,7 +55,7 @@ public class MainApplication extends Application implements ReactApplication {
new RNFirebaseFunctionsPackage(), new RNFirebaseFunctionsPackage(),
new RNFirebaseInstanceIdPackage(), new RNFirebaseInstanceIdPackage(),
new RNFirebaseInvitesPackage(), new RNFirebaseInvitesPackage(),
new RNFirebaseLinksPackage(), // new RNFirebaseLinksPackage(),
new RNFirebaseMessagingPackage(), new RNFirebaseMessagingPackage(),
new RNFirebaseNotificationsPackage(), new RNFirebaseNotificationsPackage(),
new RNFirebasePerformancePackage(), new RNFirebasePerformancePackage(),

View File

@ -28,7 +28,7 @@ allprojects {
subprojects { subprojects {
ext { ext {
compileSdk = 27 compileSdk = 27
buildTools = "27.0.2" buildTools = "27.0.3"
minSdk = 18 minSdk = 18
targetSdk = 26 targetSdk = 26
} }

View File

@ -1,12 +1,9 @@
# Project-wide Gradle settings. # Project-wide Gradle settings.
# IDE (e.g. Android Studio) users: # IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override* # Gradle settings configured through the IDE *will override*
# any settings specified in this file. # any settings specified in this file.
# For more details on how to configure your build environment visit # For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html # http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process. # Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings. # The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m # Default value: -Xmx10248m -XX:MaxPermSize=256m
@ -14,11 +11,8 @@ org.gradle.daemon=true
org.gradle.parallel=true org.gradle.parallel=true
org.gradle.configureondemand=true org.gradle.configureondemand=true
org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode. # When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit # This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true # org.gradle.parallel=true
android.useDeprecatedNdk=true android.useDeprecatedNdk=true
android.enableAapt2=false