Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #354 from inoshperera/master
Browse files Browse the repository at this point in the history
fixing app catelog app issues
  • Loading branch information
harshanL authored Nov 29, 2016
2 parents c118270 + c24bca7 commit 562c7c9
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion modules/mobile-agents/android/app-catalog/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies {
exclude module: 'junit'
}
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:24.0.0-alpha1'
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.fasterxml.jackson.core:jackson-core:2.6.0-rc3'
compile 'com.fasterxml.jackson.core:jackson-databind:2.6.0-rc3'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.6.0-rc3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ private void setAppListUI(JSONArray payload) {
if (webAppCategories != null && !webAppCategories.contains(application.getCategory())) {
webAppCategories.add(application.getCategory());
}
} else {
} else if (Constants.ApplicationPayload.PLATFORM_ANDROID.equals(application.getPlatform())){
mobileApps.add(application);
if (mobileAppCategories != null && !mobileAppCategories.contains(application.getCategory())) {
mobileAppCategories.add(application.getCategory());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static void callAgentApp(Context context, String operation, String appUri
intent = explicitIntent;
}

intent.putExtra("code", operation);
intent.putExtra("operation", operation);
intent.setPackage(Constants.PACKAGE_NAME);

if (appUri != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class Constants {
public static final String SERVER_APP_ENDPOINT = "/api/appm/";
public static final String OAUTH_ENDPOINT = "/oauth2/token";
public static final String GOOGLE_PLAY_APP_URI = "market://details?id=";
public static final String APP_LIST_ENDPOINT = "/api/appm/publisher/v1.0/apps/mobileapp?field-filter=all";
public static final String APP_LIST_ENDPOINT = "/api/appm/publisher/v1.1/apps/mobileapp?field-filter=all";
public static final String APP_IMAGE_ENDPOINT = "/publisher/api/mobileapp/getfile/";
// This is set to override the server host name retrieving screen. If overriding is not
// needed, set this to null.
Expand Down Expand Up @@ -130,5 +130,6 @@ private ApplicationPayload() {
public static final String PACKAGE = "package";
public static final String TYPE_MOBILE_APP = "enterprise";
public static final String TYPE_WEB_CLIP = "webapp";
public static final String PLATFORM_ANDROID = "android";
}
}
2 changes: 1 addition & 1 deletion modules/mobile-agents/android/app-catalog/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.android.tools.build:gradle:2.2.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
apply plugin: 'com.android.library'
android {
compileSdkVersion 22
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
Expand Down
4 changes: 2 additions & 2 deletions modules/mobile-agents/android/app-catalog/volley/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
classpath 'com.android.tools.build:gradle:2.2.2'
}
}

Expand All @@ -31,7 +31,7 @@ repositories {

android {
compileSdkVersion 22
buildToolsVersion = '22.0.1'
buildToolsVersion = '23.0.3'
}

apply from: 'rules.gradle'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private SplunkConfigs(){
public static final String NOTIFICATION_ENDPOINT = "/pending-operations";
public static final String GOOGLE_PLAY_APP_URI = "market://details?id=";
public static final String DYNAMIC_CLIENT_REGISTER_ENDPOINT = "/dynamic-client-web/register";
public static final String APP_LIST_ENDPOINT = "/api/appm/publisher/v1.0/apps/mobileapp?field-filter=all";
public static final String APP_LIST_ENDPOINT = "/api/appm/publisher/v1.1/apps/mobileapp?field-filter=all";
public static final String APP_DOWNLOAD_ENDPOINT = "/publisher/api/mobileapp/getfile";
public static final String ACTION_RESPONSE = "org.wso2.emm.agent.MESSAGE_PROCESSED";
public static final String POLICY_ENDPOINT = SERVER_APP_ENDPOINT + "policy/";
Expand Down

0 comments on commit 562c7c9

Please sign in to comment.