-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,282 changed files
with
101,126 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Please refer to the Changelog of Element Android: https://github.com/vector-im/element-android/blob/master/CHANGES.md | ||
|
||
Changes in Matrix-SDK 0.0.1 (2020-08-14) | ||
=================================================== | ||
|
||
This is the first release of the Matrix SDK. | ||
|
||
This first release has been created from the develop branch of Element Android ([at this commit](https://github.com/vector-im/element-android/commit/5a3894036cb34d00177603e69c5b15431212152d)). | ||
Next releases will be done from master branch of Element Android and the version name will be the same between the SDK and Element Android |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
# matrix-android-sdk2 | ||
Matrix SDK for Android, extracted from the Element Android application | ||
|
||
Matrix SDK for Android, extracted from the Element Android application. | ||
|
||
The SDK is still in beta, and replaces the [legacy Matrix Android SDK](https://github.com/matrix-org/matrix-android-sdk) provided by Matrix.org | ||
|
||
## About | ||
|
||
This repository contains the matrix-android-sdk extracted from the project [Element Android](https://github.com/vector-im/element-android) | ||
|
||
Please open any issue in the Element Android project [Create an issue](https://github.com/vector-im/element-android/issues/new/choose) | ||
|
||
## How to integrate the SDK in your application | ||
|
||
To integrate the SDK to your application, add the following gradle dependency to the build.gradle of your application module: | ||
|
||
```gradle | ||
implementation 'com.github.matrix-org:matrix-android-sdk2:v0.0.1' | ||
``` | ||
|
||
You need to add Jitpack as a repository in your main build.gradle file. Please follow instructions here: https://jitpack.io/ | ||
|
||
## Migrate from legacy SDK | ||
|
||
Sadly there is no official documentation on how to migrate from the old SDK to the new one. Because the new SDK API is totally new, we guess that there is no easy way to handle a migration. | ||
|
||
We advice that new applications uses this new SDK. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
|
||
buildscript { | ||
ext.kotlin_version = '1.3.72' | ||
repositories { | ||
google() | ||
jcenter() | ||
maven { | ||
url "https://plugins.gradle.org/m2/" | ||
} | ||
} | ||
dependencies { | ||
// Warning: 3.6.3 leads to infinite gradle builds. Stick to 3.5.3 for the moment | ||
classpath 'com.android.tools.build:gradle:3.5.3' | ||
classpath "com.airbnb.okreplay:gradle-plugin:1.5.0" | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
|
||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
// For olm library. This has to be declared first, to ensure that Olm library is not downloaded from another repo | ||
maven { | ||
url 'https://jitpack.io' | ||
content { | ||
// Use this repo only for olm library | ||
includeGroupByRegex "org\\.matrix\\.gitlab\\.matrix-org" | ||
// And monarchy | ||
includeGroupByRegex "com\\.github\\.Zhuinden" | ||
} | ||
} | ||
google() | ||
jcenter() | ||
} | ||
|
||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { | ||
// Warnings are potential errors, so stop ignoring them | ||
kotlinOptions.allWarningsAsErrors = true | ||
} | ||
|
||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Project-wide Gradle settings. | ||
# IDE (e.g. Android Studio) users: | ||
# Gradle settings configured through the IDE *will override* | ||
# any settings specified in this file. | ||
# For more details on how to configure your build environment visit | ||
# http://www.gradle.org/docs/current/userguide/build_environment.html | ||
# Specifies the JVM arguments used for the daemon process. | ||
# The setting is particularly useful for tweaking memory settings. | ||
android.enableJetifier=true | ||
android.useAndroidX=true | ||
org.gradle.jvmargs=-Xmx2048m | ||
# When configured, Gradle will run in incubating parallel mode. | ||
# 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 | ||
# org.gradle.parallel=true | ||
|
||
|
||
vector.debugPrivateData=false | ||
vector.httpLogLevel=NONE | ||
|
||
# Note: to debug, you can put and uncomment the following lines in the file ~/.gradle/gradle.properties to override the value above | ||
#vector.debugPrivateData=true | ||
#vector.httpLogLevel=BODY |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Thu Jul 02 12:33:07 CEST 2020 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip |
Oops, something went wrong.