Skip to content

Commit

Permalink
Merge pull request #13 from mntechnique/develop
Browse files Browse the repository at this point in the history
[Fix] internal version
  • Loading branch information
revant authored Jan 7, 2018
2 parents 18f1251 + f584d94 commit 6419b15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
24 changes: 9 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ https://jitpack.io/#mntechnique/MobileOTPAuthenticator
```
<resources>
<string name="clientId">your_client_id</string>
<string name="app_name">Your App Name</string>
<string name="authEndpoint">/api/method/frappe.integrations.oauth2.authorize</string>
<string name="tokenEndpoint">/api/method/frappe.integrations.oauth2.get_token</string>
<string name="openIDEndpoint">/api/method/frappe.integrations.oauth2.openid_profile</string>
<string name="redirectURI">oauth://oauth2authenticator</string>
<string name="serverURL">http://test.mntechnique.com</string>
<string name="oauth2Scope">openid all</string>
<string name="clientSecret">your_client_secret</string>
<string name="allowMultipleAccounts">1</string>
<!-- OAUTH -->
<string name="package_name">org.agrinext.agrimobile</string>
<string name="serverURL">http://192.168.0.108:8000</string>
<string name="clientId">0123456789</string>
<string name="allowMultipleAccounts">0</string>
<string name="otpSenderNumber">MNTECH</string>
<string name="getOTPEndpoint">/api/method/agrinext.otp.get</string>
<string name="authOTPEndpoint">/api/method/agrinext.otp.authenticate</string>
</resources>
```
Expand All @@ -38,11 +36,7 @@ Override mipmap/ic_launcher and mipmap/ic_launcher_round to change account icons
Initialize AuthRequest with Oauth 2.0 client details.

```
final AuthRequest authRequest = new AuthRequest(
getApplicationContext(),
oauth2Scope,clientId,clientSecret, serverURL,
redirectURI, authEndpoint, tokenEndpoint);
final AuthRequest authRequest = new AuthRequest(oauth2Scope, clientId, clientSecret, serverURL, redirectURI);
```

Set Callbacks and request
Expand Down
5 changes: 2 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 26
versionCode 10
versionName "1.1.1"
versionCode 12
versionName "2.0.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand All @@ -34,7 +34,6 @@ dependencies {
compile 'com.android.volley:volley:1.1.0'
testCompile 'junit:junit:4.12'
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"

// Anko
compile "org.jetbrains.anko:anko:$anko_version"
// Appcompat-v7 (only Anko Commons)
Expand Down

0 comments on commit 6419b15

Please sign in to comment.