Skip to content

Commit 9f088ac

Browse files
init
0 parents  commit 9f088ac

File tree

172 files changed

+3679
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+3679
-0
lines changed

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx

.idea/.name

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

+116
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileOptions {
5+
sourceCompatibility JavaVersion.VERSION_1_8
6+
targetCompatibility JavaVersion.VERSION_1_8
7+
}
8+
compileSdkVersion 29
9+
buildToolsVersion "29.0.2"
10+
defaultConfig {
11+
applicationId "com.kira.bellmantask"
12+
minSdkVersion 16
13+
targetSdkVersion 29
14+
versionCode 1
15+
versionName "1.0"
16+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17+
}
18+
buildTypes {
19+
release {
20+
minifyEnabled false
21+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
22+
}
23+
}
24+
}
25+
26+
dependencies {
27+
implementation fileTree(dir: 'libs', include: ['*.jar'])
28+
implementation 'androidx.appcompat:appcompat:1.1.0'
29+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
30+
testImplementation 'junit:junit:4.12'
31+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
32+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
33+
34+
//material design
35+
implementation 'com.android.support:design:29.0.0'
36+
implementation 'com.google.android.material:material:1.1.0'
37+
implementation 'com.android.support:cardview-v7:29.0.0'
38+
implementation 'com.android.support:recyclerview-v7:29.0.0'
39+
40+
//Network
41+
implementation 'com.squareup.retrofit2:retrofit:2.7.1'
42+
implementation 'com.squareup.retrofit2:converter-gson:2.7.1'
43+
44+
//image
45+
implementation 'com.squareup.picasso:picasso:2.71828'
46+
47+
48+
// ViewModel and LiveData
49+
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
50+
51+
}

app/proguard-rules.pro

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.kira.bellmantask;
2+
3+
import android.content.Context;
4+
5+
import androidx.test.platform.app.InstrumentationRegistry;
6+
import androidx.test.ext.junit.runners.AndroidJUnit4;
7+
8+
import org.junit.Test;
9+
import org.junit.runner.RunWith;
10+
11+
import static org.junit.Assert.*;
12+
13+
/**
14+
* Instrumented test, which will execute on an Android device.
15+
*
16+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
17+
*/
18+
@RunWith(AndroidJUnit4.class)
19+
public class ExampleInstrumentedTest {
20+
@Test
21+
public void useAppContext() {
22+
// Context of the app under test.
23+
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24+
25+
assertEquals("com.kira.bellmantask", appContext.getPackageName());
26+
}
27+
}

app/src/main/AndroidManifest.xml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.kira.bellmantask">
4+
<uses-permission android:name="android.permission.INTERNET"/>
5+
<application
6+
android:allowBackup="true"
7+
android:icon="@mipmap/ic_launcher"
8+
android:label="@string/app_name"
9+
android:roundIcon="@mipmap/ic_launcher_round"
10+
android:networkSecurityConfig="@xml/network_security_config"
11+
android:supportsRtl="false"
12+
android:theme="@style/AppTheme">
13+
<activity android:name=".view.ui.MainActivity"
14+
android:windowSoftInputMode="adjustPan">
15+
<intent-filter>
16+
<action android:name="android.intent.action.MAIN" />
17+
18+
<category android:name="android.intent.category.LAUNCHER" />
19+
</intent-filter>
20+
</activity>
21+
</application>
22+
23+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package com.kira.bellmantask.data;
2+
3+
import retrofit2.Retrofit;
4+
import retrofit2.converter.gson.GsonConverterFactory;
5+
public class ApiClient {
6+
private static final String BASE_URL = "";
7+
private static ApiClient mInstance;
8+
private Retrofit retrofit;
9+
10+
private ApiClient() {
11+
12+
retrofit = new Retrofit.Builder()
13+
.baseUrl(BASE_URL)
14+
.addConverterFactory(GsonConverterFactory.create())
15+
.build();
16+
}
17+
18+
public static synchronized ApiClient getInstance() {
19+
if (mInstance == null) {
20+
mInstance = new ApiClient();
21+
}
22+
return mInstance;
23+
}
24+
25+
public ApiInterface getApi() {
26+
return retrofit.create(ApiInterface.class);
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.kira.bellmantask.data;
2+
3+
import com.kira.bellmantask.model.BellmanData;
4+
5+
6+
import retrofit2.Call;
7+
import retrofit2.http.GET;
8+
9+
public interface ApiInterface {
10+
11+
@GET("home")
12+
Call<BellmanData> getCategoryData();
13+
}

0 commit comments

Comments
 (0)