Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaiji committed Oct 8, 2018
0 parents commit 83bff7b
Show file tree
Hide file tree
Showing 242 changed files with 4,957 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*.iml
.gradle
/local.properties
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
.DS_Store
/build
/captures
.externalNativeBuild
Binary file added .idea/caches/build_file_checksums.ser
Binary file not shown.
29 changes: 29 additions & 0 deletions .idea/codeStyles/Project.xml

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

22 changes: 22 additions & 0 deletions .idea/compiler.xml

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

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

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

18 changes: 18 additions & 0 deletions .idea/gradle.xml

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

34 changes: 34 additions & 0 deletions .idea/misc.xml

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

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

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

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
39 changes: 39 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apply plugin: 'com.android.application'

android {
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
}
compileSdkVersion 26
defaultConfig {
applicationId "ir.debook.debook"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
compileOnly files('libs/android-smart-image-view-1.0.0.jar')
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'com.android.support:design:26.+'
implementation files('/Users/nima/Downloads/httpcomponents-client-4.5.6/lib/httpmime-4.5.6.jar')
implementation files('/Users/nima/Downloads/httpcomponents-client-4.5.6/lib/httpclient-4.5.6.jar')
implementation files('/Users/nima/Downloads/httpcomponents-client-4.5.6/lib/httpcore-4.4.10.jar')
}
Binary file added app/libs/android-smart-image-view-1.0.0.jar
Binary file not shown.
21 changes: 21 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
8 changes: 8 additions & 0 deletions app/sampledata/sample_category.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"data" :[
{"text": 1},
{"text": 4},
{"text": 2},
{"text": 3}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package ir.debook.debook;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("ir.debook.debook", appContext.getPackageName());
}
}
26 changes: 26 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ir.debook.debook">

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

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".sampleUpload">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

</application>

</manifest>
Binary file added app/src/main/assets/fonts/IRANSans.ttf
Binary file not shown.
Binary file added app/src/main/assets/fonts/IRANSans_Bold.ttf
Binary file not shown.
33 changes: 33 additions & 0 deletions app/src/main/java/BookCore/Account.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package BookCore;

import java.util.List;

public class Account extends User {
Cart cart;
List<Book> willingToSellBooks;
String phoneNumber;

public Cart getCart() {
return cart;
}

public void setCart(Cart cart) {
this.cart = cart;
}

public List<Book> getWillingToSellBooks() {
return willingToSellBooks;
}

public void setWillingToSellBooks(List<Book> willingToSellBooks) {
this.willingToSellBooks = willingToSellBooks;
}

public String getPhoneNumber() {
return phoneNumber;
}

public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
}
45 changes: 45 additions & 0 deletions app/src/main/java/BookCore/Address.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package BookCore;

public class Address {
String country,state,city,block,completeAddress;

public String getCountry() {
return country;
}

public void setCountry(String country) {
this.country = country;
}

public String getState() {
return state;
}

public void setState(String state) {
this.state = state;
}

public String getCity() {
return city;
}

public void setCity(String city) {
this.city = city;
}

public String getBlock() {
return block;
}

public void setBlock(String block) {
this.block = block;
}

public String getCompleteAddress() {
return completeAddress;
}

public void setCompleteAddress(String completeAddress) {
this.completeAddress = completeAddress;
}
}
22 changes: 22 additions & 0 deletions app/src/main/java/BookCore/Answer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package BookCore;

public class Answer {
String answerText;
boolean isChecked;

public String getAnswerText() {
return answerText;
}

public void setAnswerText(String answerText) {
this.answerText = answerText;
}

public boolean isChecked() {
return isChecked;
}

public void setChecked(boolean checked) {
isChecked = checked;
}
}
Loading

0 comments on commit 83bff7b

Please sign in to comment.