mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-15 08:45:04 +01:00
Update gradle
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
e3451342f3
commit
1c3792bc21
@ -56,7 +56,7 @@ public class MentionAutocompleteCallback implements AutocompleteCallback<Mention
|
||||
int end = range[1];
|
||||
String replacement = item.label;
|
||||
|
||||
StringBuilder replacementStringBuilder = new StringBuilder(item.getLabel());
|
||||
StringBuilder replacementStringBuilder = new StringBuilder(item.label);
|
||||
for (EmojiRange emojiRange : EmojiUtils.emojis(replacement)) {
|
||||
replacementStringBuilder.delete(emojiRange.start, emojiRange.end);
|
||||
}
|
||||
@ -64,10 +64,10 @@ public class MentionAutocompleteCallback implements AutocompleteCallback<Mention
|
||||
editable.replace(start, end, replacementStringBuilder.toString() + " ");
|
||||
Spans.MentionChipSpan mentionChipSpan =
|
||||
new Spans.MentionChipSpan(DisplayUtils.INSTANCE.getDrawableForMentionChipSpan(context,
|
||||
item.getId(), item.getLabel(), conversationUser, item.getSource(),
|
||||
item.id, item.label, conversationUser, item.source,
|
||||
R.xml.chip_you, editText),
|
||||
BetterImageSpan.ALIGN_CENTER,
|
||||
item.getId(), item.getLabel());
|
||||
item.id, item.label);
|
||||
editable.setSpan(mentionChipSpan, start, start + replacementStringBuilder.toString().length(),
|
||||
Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
return true;
|
||||
|
@ -61,13 +61,13 @@ public class BrowserFile {
|
||||
|
||||
public static BrowserFile getModelFromResponse(Response response, String remotePath) {
|
||||
BrowserFile browserFile = new BrowserFile();
|
||||
browserFile.setPath(Uri.decode(remotePath));
|
||||
browserFile.setDisplayName(Uri.decode(new File(remotePath).getName()));
|
||||
browserFile.path = (Uri.decode(remotePath));
|
||||
browserFile.displayName = (Uri.decode(new File(remotePath).getName()));
|
||||
final List<Property> properties = response.getProperties();
|
||||
|
||||
for (Property property : properties) {
|
||||
if (property instanceof OCId) {
|
||||
browserFile.setRemoteId(((OCId) property).getOcId());
|
||||
browserFile.remoteId = (((OCId) property).getOcId());
|
||||
}
|
||||
|
||||
if (property instanceof ResourceType) {
|
||||
@ -77,36 +77,36 @@ public class BrowserFile {
|
||||
}
|
||||
|
||||
if (property instanceof GetLastModified) {
|
||||
browserFile.setModifiedTimestamp(((GetLastModified) property).getLastModified());
|
||||
browserFile.modifiedTimestamp = (((GetLastModified) property).getLastModified());
|
||||
}
|
||||
|
||||
if (property instanceof GetContentType) {
|
||||
browserFile.setMimeType(((GetContentType) property).getType());
|
||||
browserFile.mimeType = (((GetContentType) property).getType());
|
||||
}
|
||||
|
||||
if (property instanceof OCSize) {
|
||||
browserFile.setSize(((OCSize) property).getOcSize());
|
||||
browserFile.size = (((OCSize) property).getOcSize());
|
||||
}
|
||||
|
||||
if (property instanceof NCPreview) {
|
||||
browserFile.setHasPreview(((NCPreview) property).isNcPreview());
|
||||
browserFile.hasPreview = (((NCPreview) property).isNcPreview());
|
||||
}
|
||||
|
||||
if (property instanceof OCFavorite) {
|
||||
browserFile.setFavorite(((OCFavorite) property).isOcFavorite());
|
||||
browserFile.favorite = (((OCFavorite) property).isOcFavorite());
|
||||
}
|
||||
|
||||
if (property instanceof DisplayName) {
|
||||
browserFile.setDisplayName(((DisplayName) property).getDisplayName());
|
||||
browserFile.displayName = (((DisplayName) property).getDisplayName());
|
||||
}
|
||||
|
||||
if (property instanceof NCEncrypted) {
|
||||
browserFile.setEncrypted(((NCEncrypted) property).isNcEncrypted());
|
||||
browserFile.encrypted = (((NCEncrypted) property).isNcEncrypted());
|
||||
}
|
||||
}
|
||||
|
||||
if (TextUtils.isEmpty(browserFile.getMimeType()) && !browserFile.isFile()) {
|
||||
browserFile.setMimeType("inode/directory");
|
||||
if (TextUtils.isEmpty(browserFile.mimeType) && !browserFile.isFile) {
|
||||
browserFile.mimeType = ("inode/directory");
|
||||
}
|
||||
|
||||
return browserFile;
|
||||
|
@ -41,10 +41,12 @@ public class NCEncrypted implements Property {
|
||||
public static final Name NAME =
|
||||
new Name(DavUtils.NC_NAMESPACE, DavUtils.EXTENDED_PROPERTY_IS_ENCRYPTED);
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
private boolean ncEncrypted;
|
||||
|
||||
public boolean isNcEncrypted() {
|
||||
return ncEncrypted;
|
||||
}
|
||||
|
||||
private NCEncrypted(boolean isEncrypted) {
|
||||
ncEncrypted = isEncrypted;
|
||||
}
|
||||
|
@ -41,10 +41,12 @@ public class NCPreview implements Property {
|
||||
public static final Property.Name NAME =
|
||||
new Property.Name(DavUtils.NC_NAMESPACE, DavUtils.EXTENDED_PROPERTY_HAS_PREVIEW);
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
private boolean ncPreview;
|
||||
|
||||
public boolean isNcPreview() {
|
||||
return ncPreview;
|
||||
}
|
||||
|
||||
private NCPreview(boolean hasPreview) {
|
||||
ncPreview = hasPreview;
|
||||
}
|
||||
|
@ -41,10 +41,12 @@ public class OCFavorite implements Property {
|
||||
public static final Property.Name NAME =
|
||||
new Property.Name(DavUtils.OC_NAMESPACE, DavUtils.EXTENDED_PROPERTY_FAVORITE);
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
private boolean ocFavorite;
|
||||
|
||||
public boolean isOcFavorite() {
|
||||
return ocFavorite;
|
||||
}
|
||||
|
||||
OCFavorite(boolean isFavorite) {
|
||||
ocFavorite = isFavorite;
|
||||
}
|
||||
|
@ -41,10 +41,12 @@ public class OCId implements Property {
|
||||
public static final Name NAME =
|
||||
new Name(DavUtils.OC_NAMESPACE, DavUtils.EXTENDED_PROPERTY_NAME_REMOTE_ID);
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
private String ocId;
|
||||
|
||||
public String getOcId() {
|
||||
return ocId;
|
||||
}
|
||||
|
||||
private OCId(String id) {
|
||||
ocId = id;
|
||||
}
|
||||
|
@ -41,10 +41,12 @@ public class OCSize implements Property {
|
||||
public static final Property.Name NAME =
|
||||
new Property.Name(DavUtils.OC_NAMESPACE, DavUtils.EXTENDED_PROPERTY_NAME_SIZE);
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
private long ocSize;
|
||||
|
||||
public long getOcSize() {
|
||||
return ocSize;
|
||||
}
|
||||
|
||||
private OCSize(long size) {
|
||||
ocSize = size;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class HelloResponseWebSocketMessage {
|
||||
|
||||
public boolean serverHasMCUSupport() {
|
||||
return serverHelloResponseFeaturesWebSocketMessage != null
|
||||
&& serverHelloResponseFeaturesWebSocketMessage.getFeatures() != null
|
||||
&& serverHelloResponseFeaturesWebSocketMessage.getFeatures().contains("mcu");
|
||||
&& serverHelloResponseFeaturesWebSocketMessage.features != null
|
||||
&& serverHelloResponseFeaturesWebSocketMessage.features.contains("mcu");
|
||||
}
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ public class ApiUtils {
|
||||
@Nullable String invite,
|
||||
@Nullable String conversationName) {
|
||||
RetrofitBucket retrofitBucket = new RetrofitBucket();
|
||||
retrofitBucket.setUrl(baseUrl + ocsApiVersion + spreedApiVersion + "/room");
|
||||
retrofitBucket.url = (baseUrl + ocsApiVersion + spreedApiVersion + "/room");
|
||||
Map<String, String> queryMap = new HashMap<>();
|
||||
|
||||
queryMap.put("roomType", roomType);
|
||||
@ -162,7 +162,7 @@ public class ApiUtils {
|
||||
queryMap.put("roomName", conversationName);
|
||||
}
|
||||
|
||||
retrofitBucket.setQueryMap(queryMap);
|
||||
retrofitBucket.queryMap = (queryMap);
|
||||
|
||||
return retrofitBucket;
|
||||
}
|
||||
@ -170,14 +170,14 @@ public class ApiUtils {
|
||||
public static RetrofitBucket getRetrofitBucketForAddParticipant(String baseUrl, String token,
|
||||
String user) {
|
||||
RetrofitBucket retrofitBucket = new RetrofitBucket();
|
||||
retrofitBucket.setUrl(
|
||||
retrofitBucket.url = (
|
||||
baseUrl + ocsApiVersion + spreedApiVersion + "/room/" + token + "/participants");
|
||||
|
||||
Map<String, String> queryMap = new HashMap<>();
|
||||
|
||||
queryMap.put("newParticipant", user);
|
||||
|
||||
retrofitBucket.setQueryMap(queryMap);
|
||||
retrofitBucket.queryMap = (queryMap);
|
||||
|
||||
return retrofitBucket;
|
||||
}
|
||||
@ -185,14 +185,7 @@ public class ApiUtils {
|
||||
public static RetrofitBucket getRetrofitBucketForAddGroupParticipant(String baseUrl, String token,
|
||||
String group) {
|
||||
RetrofitBucket retrofitBucket = getRetrofitBucketForAddParticipant(baseUrl, token, group);
|
||||
retrofitBucket.getQueryMap().put("source", "groups");
|
||||
return retrofitBucket;
|
||||
}
|
||||
|
||||
public static RetrofitBucket getRetrofitBucketForAddMailParticipant(String baseUrl, String token,
|
||||
String mail) {
|
||||
RetrofitBucket retrofitBucket = getRetrofitBucketForAddParticipant(baseUrl, token, mail);
|
||||
retrofitBucket.getQueryMap().put("source", "emails");
|
||||
retrofitBucket.queryMap.put("source", "groups");
|
||||
return retrofitBucket;
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ buildscript {
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.5.3'
|
||||
classpath 'com.android.tools.build:gradle:4.0.0-alpha09'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
|
||||
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
|
||||
|
||||
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
||||
#Wed Dec 11 12:48:55 CET 2019
|
||||
#Thu Jan 30 21:22:08 CET 2020
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-rc-1-all.zip
|
||||
|
Loading…
Reference in New Issue
Block a user