electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

buildozer.spec (6945B)


      1 [app]
      2 
      3 # (str) Title of your application
      4 title = Electrum
      5 
      6 # (str) Package name
      7 package.name = Electrum
      8 
      9 # (str) Package domain (needed for android/ios packaging)
     10 package.domain = org.electrum
     11 
     12 # (str) Source code where the main.py live
     13 source.dir = .
     14 
     15 # (list) Source files to include (let empty to include all the files)
     16 source.include_exts = py,png,jpg,kv,atlas,ttf,txt,gif,pem,mo,vs,fs,json,csv
     17 
     18 # (list) Source files to exclude (let empty to not exclude anything)
     19 source.exclude_exts = spec
     20 
     21 # (list) List of directory to exclude (let empty to not exclude anything)
     22 source.exclude_dirs = bin, build, dist, contrib,
     23     electrum/tests,
     24     electrum/gui/qt,
     25     electrum/gui/kivy/theming/light,
     26     packages/qdarkstyle,
     27     packages/qtpy
     28 # (list) List of exclusions using pattern matching
     29 source.exclude_patterns = Makefile,setup*
     30 
     31 # (str) Application versioning (method 1)
     32 version.regex = APK_VERSION = '(.*)'
     33 version.filename = %(source.dir)s/electrum/version.py
     34 
     35 # (str) Application versioning (method 2)
     36 #version = 1.9.8
     37 
     38 # (list) Application requirements
     39 requirements =
     40     hostpython3==3.8.8,
     41     python3==3.8.8,
     42     android,
     43     openssl,
     44     plyer,
     45     # kivy 2.0.0
     46     kivy==dedcb6bcabe3d8d6758dcee607e8c33b174d782b,
     47     libffi,
     48     libsecp256k1,
     49     cryptography
     50 
     51 # (str) Presplash of the application
     52 #presplash.filename = %(source.dir)s/gui/kivy/theming/splash.png
     53 presplash.filename = %(source.dir)s/electrum/gui/icons/electrum_presplash.png
     54 
     55 # (str) Icon of the application
     56 icon.filename = %(source.dir)s/electrum/gui/icons/electrum_launcher.png
     57 
     58 # (str) Supported orientation (one of landscape, portrait or all)
     59 orientation = portrait
     60 
     61 # (bool) Indicate if the application should be fullscreen or not
     62 fullscreen = False
     63 
     64 
     65 #
     66 # Android specific
     67 #
     68 
     69 # (list) Permissions
     70 android.permissions = INTERNET, CAMERA, WRITE_EXTERNAL_STORAGE
     71 
     72 # (int) Android API to use  (targetSdkVersion AND compileSdkVersion)
     73 # note: when changing, Dockerfile also needs to be changed to install corresponding build tools
     74 android.api = 29
     75 
     76 # (int) Minimum API required. You will need to set the android.ndk_api to be as low as this value.
     77 android.minapi = 21
     78 
     79 # (str) Android NDK version to use
     80 android.ndk = 19c
     81 
     82 # (int) Android NDK API to use (optional). This is the minimum API your app will support.
     83 android.ndk_api = 21
     84 
     85 # (bool) Use --private data storage (True) or --dir public storage (False)
     86 android.private_storage = True
     87 
     88 # (str) Android NDK directory (if empty, it will be automatically downloaded.)
     89 android.ndk_path = /opt/android/android-ndk
     90 
     91 # (str) Android SDK directory (if empty, it will be automatically downloaded.)
     92 android.sdk_path = /opt/android/android-sdk
     93 
     94 # (str) ANT directory (if empty, it will be automatically downloaded.)
     95 android.ant_path = /opt/android/apache-ant
     96 
     97 # (str) Android entry point, default is ok for Kivy-based app
     98 #android.entrypoint = org.renpy.android.PythonActivity
     99 
    100 # (list) List of Java .jar files to add to the libs so that pyjnius can access
    101 # their classes. Don't add jars that you do not need, since extra jars can slow
    102 # down the build process. Allows wildcards matching, for example:
    103 # OUYA-ODK/libs/*.jar
    104 #android.add_jars = foo.jar,bar.jar,path/to/more/*.jar
    105 #android.add_jars = lib/android/zbar.jar
    106 
    107 # (list) List of Java files to add to the android project (can be java or a
    108 # directory containing the files)
    109 android.add_src = electrum/gui/kivy/data/java-classes/
    110 
    111 android.gradle_dependencies = me.dm7.barcodescanner:zxing:1.9.8
    112 
    113 android.add_activities = org.electrum.qr.SimpleScannerActivity
    114 
    115 # (str) python-for-android branch to use, if not master, useful to try
    116 # not yet merged features.
    117 #android.branch = master
    118 
    119 # (str) OUYA Console category. Should be one of GAME or APP
    120 # If you leave this blank, OUYA support will not be enabled
    121 #android.ouya.category = GAME
    122 
    123 # (str) Filename of OUYA Console icon. It must be a 732x412 png image.
    124 #android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png
    125 
    126 # (str) XML file to include as an intent filters in <activity> tag
    127 android.manifest.intent_filters = contrib/android/bitcoin_intent.xml
    128 
    129 # (str) launchMode to set for the main activity
    130 android.manifest.launch_mode = singleTask
    131 
    132 # (list) Android additionnal libraries to copy into libs/armeabi
    133 #android.add_libs_armeabi = lib/android/*.so
    134 
    135 # (bool) Indicate whether the screen should stay on
    136 # Don't forget to add the WAKE_LOCK permission if you set this to True
    137 #android.wakelock = False
    138 
    139 # (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
    140 # note: can be overwritten by APP_ANDROID_ARCH env var
    141 android.arch = armeabi-v7a
    142 
    143 # (list) Android application meta-data to set (key=value format)
    144 #android.meta_data =
    145 
    146 # (list) Android library project to add (will be added in the
    147 # project.properties automatically.)
    148 #android.library_references =
    149 
    150 android.whitelist = lib-dynload/_csv.so
    151 
    152 
    153 #
    154 # Python for android (p4a) specific
    155 #
    156 
    157 # (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
    158 p4a.source_dir = /opt/python-for-android
    159 
    160 # (str) The directory in which python-for-android should look for your own build recipes (if any)
    161 #p4a.local_recipes =
    162 
    163 # (str) Filename to the hook for p4a
    164 #p4a.hook =
    165 
    166 # (str) Bootstrap to use for android builds
    167 # p4a.bootstrap = sdl2
    168 
    169 # (int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)
    170 #p4a.port =
    171 
    172 
    173 #
    174 # iOS specific
    175 #
    176 
    177 # (str) Name of the certificate to use for signing the debug version
    178 # Get a list of available identities: buildozer ios list_identities
    179 #ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"
    180 
    181 # (str) Name of the certificate to use for signing the release version
    182 #ios.codesign.release = %(ios.codesign.debug)s
    183 
    184 
    185 
    186 [buildozer]
    187 
    188 # (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
    189 log_level = 1
    190 
    191 
    192 # -----------------------------------------------------------------------------
    193 # List as sections
    194 #
    195 # You can define all the "list" as [section:key].
    196 # Each line will be considered as a option to the list.
    197 # Let's take [app] / source.exclude_patterns.
    198 # Instead of doing:
    199 #
    200 #     [app]
    201 #     source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
    202 #
    203 # This can be translated into:
    204 #
    205 #     [app:source.exclude_patterns]
    206 #     license
    207 #     data/audio/*.wav
    208 #     data/images/original/*
    209 #
    210 
    211 # -----------------------------------------------------------------------------
    212 # Profiles
    213 #
    214 # You can extend section / key with a profile
    215 # For example, you want to deploy a demo version of your application without
    216 # HD content. You could first change the title to add "(demo)" in the name
    217 # and extend the excluded directories to remove the HD content.
    218 #
    219 #     [app@demo]
    220 #     title = My Application (demo)
    221 #
    222 #     [app:source.exclude_patterns@demo]
    223 #     images/hd/*
    224 #
    225 # Then, invoke the command line with the "demo" profile:
    226 #
    227 #     buildozer --profile demo android debug