Skip to content

Commit

Permalink
Sample App Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-sharma-bigstep committed Jan 17, 2020
1 parent add2ea0 commit 8e599c5
Show file tree
Hide file tree
Showing 22 changed files with 1,620 additions and 23 deletions.
11 changes: 10 additions & 1 deletion ChannelizeSampleSdk/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ android {
}

ext{
channelizeSDKVersion = '4.0.10'
supportLibraryVersion = '28.0.0'
agoraSDKVersion = '2.3.0'
channelizeSDKVersion = '4.1.7'
}

dependencies {
Expand Down Expand Up @@ -97,6 +99,13 @@ dependencies {
exclude group: 'com.google.android'
}

//Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation("com.squareup.okhttp3:logging-interceptor:4.2.1")

implementation "io.agora.rtc:full-sdk:$agoraSDKVersion"

// Channelize Dependency.
implementation "com.github.ChannelizeIO.Channelize-Android-SDK:channelizeapi:$channelizeSDKVersion"
implementation "com.github.ChannelizeIO.Channelize-Android-SDK:channelizeui:$channelizeSDKVersion"
Expand Down
2 changes: 1 addition & 1 deletion ChannelizeSampleSdk/app/google-services.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"Configure your project on fcm and replace with your google-service.json file" : "google-service.json"
"Configure your project on fcm and replace with your google-service.json file" : "google-service.json"
}
33 changes: 33 additions & 0 deletions ChannelizeSampleSdk/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,45 @@
android:value="com.channelize.sample.MainActivity" />

<activity android:name="com.channelize.sample.MainActivity">
<!--<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>-->
</activity>

<activity android:name=".SignUpActivity"
android:theme="@style/NoActionBarTheme"></activity>

<activity
android:name=".LoginActivity"
android:launchMode="singleTask"
android:theme="@style/NoActionBarTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<service
android:name=".pushnotification.MyFcmListenerService"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/pm_content_provider" />
</provider>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -1,11 +1,39 @@
package com.channelize.sample;

public class Config {
class Config {

// This will be the api key.
static final String API_KEY = "Replace with your channelize api key";
//This will be the default API calling url. ("Subdomain" is present in Channelize.io Plugin)
static final String API_DEFAULT_URL = "https://YOUR_SUBDOMAIN.primemessenger.com/api/";

// this will be sender id of the project
public static final String FIREBASE_SENDER_ID = "Replace with your project number";
//This will be the mqtt client server url. ("Subdomain" is present in Channelize.io Plugin)
static final String MQTT_SERVER_URL = "wss://YOUR_SUBDOMAIN.primemessenger.com";

// This will be the api key. ("API key" is present in Channelize.io Plugin)
static final String API_KEY = "CHANNELIZE_API_KEY";

//This will be the private api key. ("PRIVATE API key" is present in Channelize.io Plugin)
static final String API_PRIVATE_KEY = "CHANNELIZE_API_KEY";

// this will be project_number in google-services.json file.
// Leave this field to empty if you don't want the push notifications.
public static final String FIREBASE_SENDER_ID = "CHANNELIZE_FIREBASE_SENDER_ID";

// This will be the mobilesdk_app_id in google-services.json file'
// Leave this field to empty if you don't want the push notifications.
public static final String FIREBASE_APPLICATION_ID = "CHANNELIZE_FIREBASE_APPLICATION_ID";

// This will be the giphy api key for the sticker and gif module.
// To use this feature you've to purchase the sticker-gif module
// Leave this field to empty if you don't want the sticker/gif features.
static final String GIPHY_API_KEY = "CHANNELIZE_GIPHY_API_KEY";

// This will be the google places api key for the location module.
// Leave this field to empty if you don't want the location features.
static final String GOOGLE_PLACES_API_KEY = "CHANNELIZE_GOOGLE_PLACES_API_KEY";

// This will be the agora app id for voice/video call.
// This will only works when you've the video voice call module.
// So add this line only when you've the video voice call module.
static final String AGORA_APP_ID = "";

}
Loading

0 comments on commit 8e599c5

Please sign in to comment.