Title: Proguard issue with Android release · Issue #258 · microsoftgraph/msgraph-sdk-java · GitHub
Open Graph Title: Proguard issue with Android release · Issue #258 · microsoftgraph/msgraph-sdk-java
X Title: Proguard issue with Android release · Issue #258 · microsoftgraph/msgraph-sdk-java
Description: Is this sdk really usable on Adroid? I am referring to this post issue #213 I also posted on Stack Overflow with more details . Please keep us informed as we have been spending time to migrate from onedrive-sdk-android which seems no lon...
Open Graph Description: Is this sdk really usable on Adroid? I am referring to this post issue #213 I also posted on Stack Overflow with more details . Please keep us informed as we have been spending time to migrate from...
X Description: Is this sdk really usable on Adroid? I am referring to this post issue #213 I also posted on Stack Overflow with more details . Please keep us informed as we have been spending time to migrate from...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/258
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Proguard issue with Android release","articleBody":"Is this sdk really usable on Adroid?\r\n\r\nI am referring to this post issue [#213](https://github.com/microsoftgraph/msgraph-sdk-java/issues/213)\r\n\r\n[I also posted on Stack Overflow with more details .](https://stackoverflow.com/questions/56445698/issue-with-microsoft-graph-java-sdk-and-proguard-for-android-release)\r\n\r\nPlease keep us informed as we have been spending time to migrate from [onedrive-sdk-android](https://github.com/OneDrive/onedrive-sdk-android) which seems no longer maintained and no longer works with Pie.\r\n\r\nThanks\r\n\r\n**Steps to reproduce the behavior**\r\nImport[ android-java-connect-sample](https://github.com/microsoftgraph/android-java-connect-sample) \r\nReplace the app gradle file by this:\r\n````java\r\napply plugin: 'com.android.application'\r\n\r\nandroid {\r\n compileSdkVersion 28\r\n flavorDimensions \"default\"\r\n defaultConfig {\r\n applicationId \"com.microsoft.graph.connect\"\r\n minSdkVersion 16\r\n targetSdkVersion 28\r\n versionCode 2\r\n versionName \"2.0\"\r\n multiDexEnabled true\r\n testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\r\n }\r\n signingConfigs {\r\n release {\r\n keyAlias 'key0'\r\n keyPassword 'your password'\r\n storeFile file('the path of your keyt.jks')\r\n storePassword 'your password'\r\n }\r\n debug {\r\n keyAlias 'key0'\r\n keyPassword 'your password'\r\n storeFile file('the path of your keyt.jks')\r\n storePassword 'your password'\r\n }\r\n }\r\n buildTypes {\r\n release {\r\n minifyEnabled true\r\n shrinkResources true\r\n debuggable true\r\n proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n signingConfig signingConfigs.release\r\n proguardFile 'the path of your proguard-rules.pro'\r\n }\r\n debug {\r\n minifyEnabled false\r\n shrinkResources false\r\n signingConfig signingConfigs.debug\r\n debuggable true\r\n proguardFile 'the path of your proguard-rules.pro'\r\n }\r\n }\r\n productFlavors {\r\n legacyDebug {\r\n minSdkVersion 17\r\n }\r\n modernDebug {\r\n minSdkVersion 21\r\n }\r\n }\r\n testOptions {\r\n unitTests.returnDefaultValues = true\r\n }\r\n configurations {\r\n all {\r\n resolutionStrategy.force 'com.android.support:support-annotations:25.3.1'\r\n }\r\n }\r\n dexOptions {\r\n preDexLibraries = false\r\n jumboMode = true\r\n javaMaxHeapSize \"4g\"\r\n }\r\n packagingOptions {\r\n exclude 'META-INF/maven/com.google.guava/guava/pom.properties'\r\n exclude 'META-INF/maven/com.google.guava/guava/pom.xml'\r\n exclude 'META-INF/jersey-module-version'\r\n }\r\n}\r\n\r\ndependencies {\r\n implementation 'com.android.support:multidex:1.0.3'\r\n implementation fileTree(include: ['*.jar'], dir: 'libs')\r\n testImplementation 'junit:junit:4.12'\r\n implementation 'com.android.support:appcompat-v7:28.0.0'\r\n implementation 'com.android.volley:volley:1.1.0'\r\n // Include the SDK as a dependency\r\n implementation 'com.microsoft.graph:microsoft-graph:1.4.0'\r\n implementation 'com.microsoft.graph:microsoft-graph-android-auth:0.1.0-SNAPSHOT'\r\n // Include GSON as a dependency\r\n implementation 'com.google.code.gson:gson:2.6.2'\r\n implementation 'commons-io:commons-io:2.0.1'\r\n // Test libraries\r\n androidTestImplementation 'com.android.support:support-annotations:25.3.1'\r\n androidTestImplementation 'com.android.support.test:runner:0.5'\r\n androidTestImplementation 'com.android.support.test:rules:0.5'\r\n androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'\r\n androidTestImplementation 'com.android.support.test.espresso:espresso-intents:2.2.2'\r\n androidTestImplementation 'com.android.support.test.espresso:espresso-web:2.2.2'\r\n\r\n}\r\n\r\n````\r\nproguard-rules.pro\r\n````java\r\n-keep class com.microsoft.** { *; }\r\n-keep class com.microsoft.**\r\n-keep interface com.microsoft.** { *; }\r\n-keepclasseswithmembernames class com.microsoft.** { *; }\r\n\r\n-keep class com.sun.** { *; }\r\n-keep class com.sun.**\r\n-keep interface com.sun.** { *; }\r\n````\r\n\r\n\r\n","author":{"url":"https://github.com/fiasko131","@type":"Person","name":"fiasko131"},"datePublished":"2019-06-04T14:28:57Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/258"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dcb69162-440a-ef3a-eab0-a704dbc4b20f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBCA:C51C8:FC218A:14FE39B:6B05152B |
| html-safe-nonce | f493d5172a7fe087c20ff8a76c4d395a388cc5a34354d713fcf9b8f1a58e3f59 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkNBOkM1MUM4OkZDMjE4QToxNEZFMzlCOjZCMDUxNTJCIiwidmlzaXRvcl9pZCI6IjY5ODg0OTI1Mjc4MDA0ODkyNTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 441a31ee829f335b03a40cbecafced75a60a927d179edcd0cb7721a34939ee41 |
| hovercard-subject-tag | issue:452030712 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java/258/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a8d52f05b5ed62a891559990a6161cb3e070ceceeb0ab77de2aa71f44ccb179/microsoftgraph/msgraph-sdk-java/issues/258 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a8d52f05b5ed62a891559990a6161cb3e070ceceeb0ab77de2aa71f44ccb179/microsoftgraph/msgraph-sdk-java/issues/258 |
| og:image:alt | Is this sdk really usable on Adroid? I am referring to this post issue #213 I also posted on Stack Overflow with more details . Please keep us informed as we have been spending time to migrate from... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fiasko131 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java git https://github.com/microsoftgraph/msgraph-sdk-java.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 103300409 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 103300409 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width