-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from mshaileshr/development
Development
- Loading branch information
Showing
84 changed files
with
1,692 additions
and
1,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"AppBoat v1.0.1","enabled":true,"outputFile":"app-debug.apk","fullName":"debug","baseName":"debug"},"path":"app-debug.apk","properties":{}}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"AppBoat v1.0.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
app/src/main/java/com/pravrajya/diamond/api/video_player/PDLPlayerActivity.java
This file was deleted.
Oops, something went wrong.
66 changes: 66 additions & 0 deletions
66
app/src/main/java/com/pravrajya/diamond/api/video_player/WatchVideoActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package com.pravrajya.diamond.api.video_player; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
import androidx.databinding.DataBindingUtil; | ||
import android.app.ProgressDialog; | ||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.view.Window; | ||
import android.webkit.WebView; | ||
import android.webkit.WebViewClient; | ||
import android.widget.ProgressBar; | ||
|
||
import com.pravrajya.diamond.R; | ||
import com.pravrajya.diamond.databinding.ActivityPdlplayerBinding; | ||
|
||
|
||
public class WatchVideoActivity extends AppCompatActivity { | ||
|
||
private ActivityPdlplayerBinding binding; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
this.requestWindowFeature(Window.FEATURE_NO_TITLE); | ||
getSupportActionBar().hide(); | ||
binding = DataBindingUtil.setContentView(this, R.layout.activity_pdlplayer); | ||
Intent intent = getIntent(); | ||
String vedio_link = intent.getStringExtra("vedio_link"); | ||
|
||
//pd = new ProgressDialog(WatchVideoActivity.this); | ||
//pd.setMessage("Please wait Loading..."); | ||
binding.progressBar.setVisibility(View.VISIBLE); | ||
binding.webview.setWebViewClient(new MyWebViewClient()); | ||
if (vedio_link!=null && !vedio_link.isEmpty()){ | ||
binding.webview.loadUrl(vedio_link); | ||
}else { | ||
binding.webview.loadUrl("https://cutwise.com/diamond/30672"); | ||
} | ||
|
||
} | ||
|
||
|
||
private class MyWebViewClient extends WebViewClient { | ||
@Override | ||
public boolean shouldOverrideUrlLoading(WebView view, String url) { | ||
view.loadUrl(url); | ||
|
||
binding.progressBar.setVisibility(View.VISIBLE); | ||
|
||
return true; | ||
} | ||
|
||
@Override | ||
public void onPageFinished(WebView view, String url) { | ||
System.out.println("on finish"); | ||
binding.progressBar.setVisibility(View.INVISIBLE); | ||
|
||
} | ||
} | ||
|
||
|
||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
app/src/main/java/com/pravrajya/diamond/tables/diamondClarity/DiamondClarity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.pravrajya.diamond.tables.diamondClarity; | ||
|
||
import io.realm.RealmObject; | ||
import io.realm.annotations.PrimaryKey; | ||
|
||
public class DiamondClarity extends RealmObject { | ||
|
||
@PrimaryKey | ||
private String clarity; | ||
private String clarityCode; | ||
|
||
public DiamondClarity() { | ||
} | ||
|
||
|
||
public DiamondClarity(String clarity, String clarityCode) { | ||
this.clarity = clarity; | ||
this.clarityCode = clarityCode; | ||
} | ||
|
||
public String getClarity() { | ||
return clarity; | ||
} | ||
|
||
public void setClarity(String clarity) { | ||
this.clarity = clarity; | ||
} | ||
|
||
public String getClarityCode() { | ||
return clarityCode; | ||
} | ||
|
||
public void setClarityCode(String clarityCode) { | ||
this.clarityCode = clarityCode; | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
app/src/main/java/com/pravrajya/diamond/tables/diamondClarity/DiamondClarityDao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package com.pravrajya.diamond.tables.diamondClarity; | ||
|
||
|
||
import com.pravrajya.diamond.tables.diamondColor.DiamondColor; | ||
|
||
import java.util.List; | ||
|
||
import androidx.annotation.NonNull; | ||
import io.realm.Realm; | ||
import io.realm.RealmObject; | ||
import io.realm.RealmResults; | ||
|
||
public class DiamondClarityDao { | ||
|
||
private Realm mRealm; | ||
|
||
public DiamondClarityDao(@NonNull Realm realm) { | ||
mRealm = realm; | ||
} | ||
|
||
public void save(final DiamondClarity diamondClarity) { | ||
mRealm.executeTransaction(realm -> realm.copyToRealmOrUpdate(diamondClarity)); | ||
} | ||
|
||
public void save(final List<DiamondClarity> list) { | ||
mRealm.executeTransaction(realm -> realm.copyToRealmOrUpdate(list)); | ||
} | ||
|
||
public RealmResults<DiamondClarity> loadAll() { | ||
return mRealm.where(DiamondClarity.class).findAll(); | ||
} | ||
|
||
public RealmResults<DiamondClarity> loadAllAsync() { | ||
return mRealm.where(DiamondClarity.class).findAll(); | ||
} | ||
|
||
public RealmObject loadBy(String uid) { | ||
return mRealm.where(DiamondClarity.class).equalTo("uid", uid).findFirst(); | ||
} | ||
|
||
public void remove(@NonNull final RealmObject object) { | ||
mRealm.executeTransaction(realm -> object.deleteFromRealm()); | ||
} | ||
|
||
public void removeAll() { | ||
mRealm.executeTransaction(realm -> mRealm.delete(DiamondClarity.class)); | ||
} | ||
|
||
public long count() { | ||
return mRealm.where(DiamondClarity.class).count(); | ||
} | ||
} |
75 changes: 0 additions & 75 deletions
75
app/src/main/java/com/pravrajya/diamond/tables/product/ProductList.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.