Skip to content

Commit

Permalink
update travis #1
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian09h committed Jul 15, 2019
1 parent b265427 commit 24e1f19
Show file tree
Hide file tree
Showing 14 changed files with 76 additions and 224 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ android:
- '.+'

sudo: required

jdk:
- oraclejdk8
before_install:
- chmod +x gradlew
- chmod +rx app

before_script:
- chmod +x gradlew
- chmod +x gradlew
213 changes: 0 additions & 213 deletions README.md

This file was deleted.

2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ android {
applicationId "io.getstream.chat.sdk"
minSdkVersion 21
targetSdkVersion 28
versionCode 2
versionCode 3
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down
Binary file modified app/release/app-release.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion app/release/output.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":2,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":3,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppThemeNoActionBar">
<activity android:name=".ChannelsActivity"></activity>
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
14 changes: 14 additions & 0 deletions app/src/main/java/io/getstream/chat/sdk/AppInfo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.getstream.chat.sdk;

public class AppInfo {
// public static String USER_ID = "broken-waterfall-5";
// public static String USER_NAME = "Jon Snow";
// public static String USER_IMAGE = "https://bit.ly/2u9Vc0r";
// public static String USER_ID = "testuser1";
// public static String USER_NAME = "Test User";
// public static String USER_IMAGE = "https://bit.ly/2u9Vc0r";

// public static String USER_ID1 = "billowing-firefly-8";
// public static String USER_NAME1 = "Billowing firefly";
// public static String USER_IMAGE1 = "https://stepupandlive.files.wordpress.com/2014/09/3d-animated-frog-image.jpg";
}
7 changes: 7 additions & 0 deletions app/src/main/java/io/getstream/chat/sdk/AppSecretKey.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package io.getstream.chat.sdk;

public final class AppSecretKey {
// public static String API_KEY = "qk4nn7rpcn75";

public static String API_KEY = "cranwty2xrfm";
}
32 changes: 32 additions & 0 deletions app/src/main/java/io/getstream/chat/sdk/ChannelsActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package io.getstream.chat.sdk;

import android.support.annotation.NonNull;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.getstream.sdk.chat.rest.core.StreamChat;
import com.getstream.sdk.chat.utils.Global;
import com.getstream.sdk.chat.view.fragment.ChannelListFragment;

public class ChannelsActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_channels);
addGetStreamFragment(Global.streamChat);
}

private void addGetStreamFragment(@NonNull StreamChat streamChat) {
ChannelListFragment fragment = new ChannelListFragment();
fragment.containerResId = R.id.container;
fragment.streamChat = streamChat;
FragmentManager fragmentManager = getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.container, fragment);
fragmentTransaction.addToBackStack(null);
fragmentTransaction.commit();
}
}
1 change: 1 addition & 0 deletions app/src/main/java/io/getstream/chat/sdk/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.getstream.sdk.chat.model.channel.Channel;
import com.getstream.sdk.chat.model.enums.Token;
import com.getstream.sdk.chat.rest.core.StreamChat;
import com.getstream.sdk.chat.utils.Global;
import com.getstream.sdk.chat.view.activity.ChatActivity;
import com.getstream.sdk.chat.view.fragment.ChannelListFragment;

Expand Down
17 changes: 17 additions & 0 deletions app/src/main/res/layout/activity_channels.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ChannelsActivity">
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ allprojects {
}
}



task clean(type: Delete) {
delete rootProject.buildDir
}
4 changes: 1 addition & 3 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,12 @@ if [ -n "$JAVA_HOME" ] ; then
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
Expand Down Expand Up @@ -169,4 +167,4 @@ if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi

exec "$JAVACMD" "$@"
exec "$JAVACMD" "$@"
2 changes: 0 additions & 2 deletions settings.gradle

This file was deleted.

0 comments on commit 24e1f19

Please sign in to comment.