Skip to content

Commit

Permalink
Last Update
Browse files Browse the repository at this point in the history
  • Loading branch information
uguraltinsoy committed Nov 24, 2022
1 parent 7a799fb commit 6e5a5a6
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 21 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion MultiJSON/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ allprojects {
```
```css
dependencies {
implementation 'com.github.uguraltinsoy:MultiJSON:1.0.0'
implementation 'com.github.uguraltinsoy:MultiJSON:1.0.1'
}
```
## Usage Java - Kotlin
Expand Down
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}

android {
Expand Down
8 changes: 8 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />

<application
Expand All @@ -13,6 +14,13 @@
android:supportsRtl="true"
android:theme="@style/Theme.MultiUrlJSON"
tools:targetApi="31">
<activity
android:name=".KotlinMainActivity"
android:exported="false">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".MainActivity"
android:exported="true">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.deeplabstudio.multiurljson

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.deeplabstudio.multijson.MultiJSON
import com.deeplabstudio.multijson.RequestCreator.JsonObject
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject

class KotlinMainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_kotlin_main)
}
}
19 changes: 0 additions & 19 deletions app/src/main/java/com/deeplabstudio/multiurljson/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,5 @@ public class MainActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

try{
JSONObject jsonObject = new JSONObject();
jsonObject.put("name", "ugur");
jsonObject.put("surname", "Altinsoy");
MultiJSON.init().load("https://api.deeplabstudio.com/test.php").setOnListener(jsonObject, new RequestCreator.JsonObject() {
@Override
public void Result(JSONObject jsonObject, String json) throws JSONException {
System.out.println("BB " + json);
}

@Override
public void Error(String error) {
System.out.println("BB ER " + error);
}
});
}catch (Exception e){

}
}
}
9 changes: 9 additions & 0 deletions app/src/main/res/layout/activity_kotlin_main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".KotlinMainActivity">

</androidx.constraintlayout.widget.ConstraintLayout>
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
plugins {
id 'com.android.application' version '7.3.1' apply false
id 'com.android.library' version '7.3.1' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
}

0 comments on commit 6e5a5a6

Please sign in to comment.