forked from Ivasoft/mattermost-mobile
* fix: handle NSMutableData * feat: integrate react-native-network-client * fix: typos * fix: semicolon * fix: rename to urlVersion * fix: add returnDataOnly arg * fix: configure network client * fix: headers * fix: handling of serverVersion * fix: rename requests to actions * fix: action imports * fix: no need to stringify body * fix: sso flow * fix: address PR feedback * fix: invalidate client on logout * fix: address PR feedback take 2 * fix: address PR feedback take 3 * fix: tsc issues * fix: get csrf token during client creation * fix: linter * fix: invalidate client onLogout * fix: event emitter * fix: unit tests * fix: apply linter fixes * fix lint * Modify actions to add / update database values * Rename clien4.d.ts to client.d.ts * fix empty & missing translations * cleanup api client * Cleanup init & squash some TODO's * Emit certificate errors in NetworkManager * cleanup user actions * Fix NetworkManager invalidate client * Invalidate client when server screen appears * Update kotlin to 1.4.30 required by network-client * patch react-native-keychain to remove cached credential * update react-native-network-client * Use app.db instead of default.db in native code * fix use of rnnc on Android * Init PushNotifications * No need to reset serverVersion on logout * fix logout action * fix deleteServerDatabase * fix schedule expired session notification * use safeParseJSON for db json fields * unsubscribe when database component unmounts * cleanup init * session type * pass launchprops to entire login flow * Properly remove third party cookies after SSO login * recreate network client if sso with redirect fails * add missing launch props from server screen * use query prefix for database queries * Add temporary logout function to channel screen Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
63 lines
1.9 KiB
Groovy
63 lines
1.9 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
ext {
|
|
buildToolsVersion = "29.0.3"
|
|
minSdkVersion = 24
|
|
compileSdkVersion = 29
|
|
targetSdkVersion = 29
|
|
ndkVersion = "20.1.5948944"
|
|
supportLibVersion = "28.0.0"
|
|
kotlinVersion = "1.4.30"
|
|
kotlin_version = "1.4.30"
|
|
firebaseVersion = "21.0.0"
|
|
RNNKotlinVersion = kotlinVersion
|
|
}
|
|
repositories {
|
|
jcenter()
|
|
google()
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:4.1.0'
|
|
classpath 'com.google.gms:google-services:4.2.0'
|
|
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
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
mavenLocal()
|
|
jcenter()
|
|
maven {
|
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
url("$rootDir/../node_modules/react-native/android")
|
|
|
|
// Replace AAR from original RN with AAR from react-native-v8
|
|
// url("$rootDir/../node_modules/react-native-v8/dist")
|
|
}
|
|
maven {
|
|
// Local Maven repo containing AARs with JSC library built for Android
|
|
url("$rootDir/../node_modules/jsc-android/dist")
|
|
|
|
// prebuilt libv8android.so
|
|
// url("$rootDir/../node_modules/v8-android/dist")
|
|
}
|
|
maven {
|
|
url "https://www.jitpack.io"
|
|
}
|
|
maven {
|
|
url ("https://dl.bintray.com/rudderstack/rudderstack")
|
|
}
|
|
maven {
|
|
url "$rootDir/../node_modules/detox/Detox-android"
|
|
}
|
|
}
|
|
}
|