Skip to content

Commit

Permalink
new release
Browse files Browse the repository at this point in the history
  • Loading branch information
issotina committed Jul 11, 2018
1 parent 1b7dcde commit 04e62bf
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 39 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
org.gradle.jvmargs=-Xmx1536m
VERSION_NAME=1.0.0
VERSION_CODE=10
VERSION_NAME=1.0.1
VERSION_CODE=11
2 changes: 1 addition & 1 deletion lib/src/main/java/co/opensi/kkiapay/jvm_compatibility.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ package co.opensi.kkiapay
*/
interface KKiapayCallback {

fun onResponse(status: STATUS, phone: String)
fun onResponse(status: STATUS, phone: String, transactionId: String)
}
4 changes: 4 additions & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation ('io.socket:socket.io-client:1.0.0') {
// excluding org.json which is provided by Android
exclude group: 'org.json', module: 'json'
}

implementation project(':lib')
}
4 changes: 0 additions & 4 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Main2Activity"
android:label="@string/title_activity_main2"
android:theme="@style/AppTheme.NoActionBar"></activity>
</application>

</manifest>
2 changes: 1 addition & 1 deletion sample/src/main/java/co/opensi/kkiapay_sdk/MA.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
manager.to(subscriber)
.take(1500, new KKiapayCallback() {
@Override
public void onResponse(@NotNull STATUS status, @NotNull String phone) {
public void onResponse(@NotNull STATUS status, @NotNull String phone, @NotNull String transactionId) {

}
});
Expand Down
22 changes: 0 additions & 22 deletions sample/src/main/java/co/opensi/kkiapay_sdk/Main2Activity.kt

This file was deleted.

18 changes: 9 additions & 9 deletions sample/src/main/java/co/opensi/kkiapay_sdk/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package co.opensi.kkiapay_sdk
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import co.opensi.kkiapay.KkiaPay
import co.opensi.kkiapay.STATUS
import co.opensi.kkiapay.debit
Expand All @@ -15,32 +16,31 @@ class MainActivity : AppCompatActivity() {

setContentView(R.layout.activity_main)







//Initialisation de l'API
KkiaPay("DSKGFF45VSVQFBVF2FSRVSFDX7DZ6VQ4SSV5")
KkiaPay("")

//Débit de 1500 a l'utilisateur dont le numero de téléphone est 67 43 42 70
("22967434270" debit 1500) {
("22967434270" debit 1) {

status, _ -> when (status) {
status, _, _ -> when (status) {


STATUS.SUCCESS -> displayToUser("Bravooo")
STATUS.INSUFFICIENT_FUND -> displayToUser("tu n'as pas le djeh bro")
else-> displayToUser("pardon faut try encore")
}

}



}


fun displayToUser( a: String){

Toast.makeText(this,a,Toast.LENGTH_SHORT).show()

}

}

0 comments on commit 04e62bf

Please sign in to comment.