This file contains hidden or 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
import android.os.Build | |
import android.security.keystore.KeyGenParameterSpec | |
import android.security.keystore.KeyProperties | |
import android.util.Base64 | |
import android.util.Log | |
import androidx.annotation.RequiresApi | |
import java.nio.charset.StandardCharsets | |
import java.security.KeyPairGenerator |
This file contains hidden or 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
ADB Commands: | |
**************************** | |
1. Launch deep link: | |
adb shell am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d https://f8uqp.app.goo.gl/r7rJWgPHDpKoWxL99 net.omobio.robisc | |
Gradlew Command: | |
./gradlew --version | |
./gradlew assemble | |
./gradlew assembleDevRelease |
This file contains hidden or 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
image: openjdk:11-jdk | |
variables: | |
ANDROID_COMPILE_SDK: "34" | |
ANDROID_BUILD_TOOLS: "34.0.0" | |
ANDROID_SDK_TOOLS: "9862592" | |
EMULATOR_VERSION: "24" | |
BUILD_VARIANT: "ProdRelease" | |
This file contains hidden or 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
1. Change the name of your project by closing the Android Studio, go to your project folder, rename it. | |
2. Delete the .idea folder and .iml file. (To show hidden folders, press Cmd + Shift + . (dot) ). | |
3. Open the Project with Android Studio. | |
StackOverflow Link: https://stackoverflow.com/questions/18276872/change-project-name-on-android-studio |
This file contains hidden or 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
class HomeActivity : MvpBaseActivity<HomePresenter>(), HomeContract.View, | |
NavigationView.OnNavigationItemSelectedListener { | |
// Image Slider | |
private lateinit var sliderAdapter: ImageSliderAdapter | |
private var images: ArrayList<String> = ArrayList() // List of url of banenr images | |
private var timer: Timer? = null | |
private var currentImage = 0 | |
private val SLIDER_DELAY: Long = 2500.toLong() |
This file contains hidden or 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
class MainActivity : AppCompatActivity() { | |
private lateinit var surfaceView: SurfaceView | |
private lateinit var barCodeDetector: BarcodeDetector | |
private lateinit var cameraSource: CameraSource | |
private val REQUST_CAMERA_PERMISSION = 123 | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) |
This file contains hidden or 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
import 'package:flutter/material.dart'; | |
Future<void> _ackAlert(BuildContext context) { | |
return showDialog<void>( | |
context: context, | |
builder: (BuildContext context) { | |
return AlertDialog( | |
title: Text('Not in stock'), | |
content: const Text('This item is no longer available'), |
This file contains hidden or 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
Way 01: | |
--------------------------------------------------------- | |
import 'package:flutter/services.dart'; | |
void main() { | |
SystemChrome.setPreferredOrientations( | |
[DeviceOrientation.portraitUp,DeviceOrientation.portraitDown]) | |
.then((_) { | |
runApp(MyApp()); |
This file contains hidden or 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
import 'package:blockpatter/base/BaseBloc.dart'; | |
import 'package:flutter/material.dart'; | |
class BlocProvider<T extends BaseBloc> extends StatefulWidget { | |
final Widget child; | |
final T bloc; |
This file contains hidden or 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
# Stateless Widget, Stateful Widget, Inherited Widget | |
# StreamBuilder, FutureBuilder | |
# Expanded, Flexibale | |
# Stack, Positioned | |
# Container, Column, Row | |
# MainAixAlignment, CrossAxisAlignment | |
# ListView: ListView, ListView.buider, ListView.seprated, Listile | |
# Button: Material Button, Raised Button, RaisedButton.icon(), Flat Button, FlatButton.icon(), Icon Button, PopupMenu Button, Drop Down Button, | |
Floating Action Button(normal, extended), Outline Button, InkWell, Gesture Detectur |
NewerOlder