Files
Flutter_Shell/android/app/build.gradle.kts
2026-06-09 17:15:57 +07:00

1045 lines
86 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import java.security.SecureRandom
import java.util.Base64
import java.util.Properties
plugins {
id("com.android.application") version "8.9.1"
id("org.jetbrains.kotlin.android") version "2.1.0"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
// id("com.google.gms.google-services") // Temporarily disabled
}
// 助记词风格词表BIP39 风格,仅小写字母,符合 Android 包名规范)
// 用于生成类似冷钱包助记词的包名,如 com.abandon.ability.able.above
val MNEMONIC_WORDS = listOf(
"abandon", "ability", "able", "about", "above", "absent", "absorb", "abstract", "absurd", "abuse",
"access", "accident", "account", "accuse", "achieve", "acid", "acoustic", "acquire", "across", "act",
"action", "actor", "actress", "actual", "adapt", "add", "addict", "address", "adjust", "admit",
"adult", "advance", "advice", "aerobic", "affair", "afford", "afraid", "again", "age", "agent",
"agree", "ahead", "aim", "air", "airport", "aisle", "alarm", "album", "alcohol", "alert",
"alien", "all", "alley", "allow", "almost", "alone", "alpha", "already", "also", "alter",
"always", "amateur", "amazing", "among", "amount", "amused", "analyst", "anchor", "ancient", "anger",
"angle", "angry", "animal", "ankle", "announce", "annual", "another", "answer", "antenna", "antique",
"anxiety", "any", "apart", "apology", "appear", "apple", "approve", "april", "arch", "arctic",
"area", "arena", "argue", "arm", "armed", "armor", "army", "around", "arrange", "arrest",
"arrive", "arrow", "art", "artefact", "artist", "artwork", "ask", "aspect", "assault", "asset",
"assist", "assume", "asthma", "athlete", "atom", "attack", "attend", "attitude", "attract", "auction",
"audit", "august", "aunt", "author", "auto", "autumn", "average", "avocado", "avoid", "awake",
"aware", "away", "awesome", "awful", "axis", "baby", "bachelor", "bacon", "badge", "bag",
"balance", "balcony", "ball", "bamboo", "banana", "banner", "bar", "barely", "bargain", "barrel",
"base", "basic", "basket", "battle", "beach", "bean", "beauty", "because", "become", "beef",
"before", "begin", "behave", "behind", "believe", "below", "belt", "bench", "benefit", "best",
"betray", "better", "between", "beyond", "bicycle", "bid", "bike", "bind", "biology", "bird",
"birth", "bitter", "black", "blade", "blame", "blanket", "blast", "bleak", "bless", "blind",
"blood", "blossom", "blouse", "blue", "blur", "blush", "board", "boat", "body", "boil",
"bomb", "bone", "bonus", "book", "boost", "border", "boring", "borrow", "boss", "bottom",
"bounce", "box", "boy", "bracket", "brain", "brand", "brass", "brave", "bread", "breeze",
"brick", "bridge", "brief", "bright", "bring", "brisk", "broccoli", "broken", "bronze", "broom",
"brother", "brown", "brush", "bubble", "buddy", "budget", "buffalo", "build", "bulb", "bulk",
"bullet", "bundle", "bunker", "burden", "burger", "burst", "bus", "business", "busy", "butter",
"buyer", "buzz", "cabbage", "cabin", "cable", "cactus", "cage", "cake", "call", "calm",
"camera", "camp", "can", "canal", "cancel", "candy", "cannon", "canoe", "canvas", "canyon",
"capable", "capital", "captain", "car", "carbon", "card", "cargo", "carpet", "carry", "cart",
"case", "cash", "casino", "castle", "casual", "cat", "catalog", "catch", "category", "cattle",
"caught", "cause", "caution", "cave", "ceiling", "celery", "cement", "census", "century", "cereal",
"certain", "chair", "chalk", "champion", "change", "chaos", "chapter", "charge", "chase", "chat",
"cheap", "check", "cheese", "chef", "cherry", "chest", "chicken", "chief", "child", "chimney",
"choice", "choose", "chronic", "chuckle", "chunk", "churn", "cigar", "cinnamon", "circle", "citizen",
"city", "civil", "claim", "clap", "clarify", "claw", "clay", "clean", "clerk", "clever",
"click", "client", "cliff", "climb", "clinic", "clip", "clock", "clog", "close", "cloth",
"cloud", "clown", "club", "clump", "cluster", "clutch", "coach", "coast", "coconut", "code",
"coffee", "coil", "coin", "collect", "color", "column", "combine", "come", "comfort", "comic",
"common", "company", "concert", "conduct", "confirm", "congress", "connect", "consider", "control", "convince",
"cook", "cool", "copper", "copy", "coral", "core", "corn", "correct", "cost", "cotton",
"couch", "country", "couple", "course", "cousin", "cover", "coyote", "crack", "cradle", "craft",
"cram", "crane", "crash", "crater", "crawl", "crazy", "cream", "credit", "creek", "crew",
"cricket", "crime", "crisp", "critic", "crop", "cross", "crouch", "crowd", "crucial", "cruel",
"cruise", "crumble", "crunch", "crush", "cry", "crystal", "cube", "culture", "cup", "cupboard",
"curious", "current", "curtain", "curve", "cushion", "custom", "cute", "cycle", "dad", "damage",
"damp", "dance", "danger", "daring", "dash", "daughter", "dawn", "day", "deal", "debate",
"debris", "decade", "december", "decide", "decline", "decorate", "decrease", "deer", "defense", "define",
"defy", "degree", "delay", "deliver", "demand", "demise", "denial", "dentist", "deny", "depart",
"depend", "deposit", "depth", "deputy", "derive", "describe", "desert", "design", "desk", "despair",
"destroy", "detail", "detect", "develop", "device", "devote", "diagram", "dial", "diamond", "diary",
"dice", "diesel", "diet", "differ", "digital", "dignity", "dilemma", "dinner", "dinosaur", "direct",
"dirt", "disagree", "discover", "disease", "dish", "dismiss", "disorder", "display", "distance", "divert",
"divide", "divorce", "dizzy", "doctor", "document", "dog", "doll", "dolphin", "domain", "donate",
"donkey", "donor", "door", "dose", "double", "dove", "draft", "dragon", "drama", "drastic",
"draw", "dream", "dress", "drift", "drill", "drink", "drip", "drive", "drop", "drum",
"dry", "duck", "dumb", "dune", "during", "dust", "dutch", "duty", "dwarf", "dynamic",
"eager", "eagle", "early", "earn", "earth", "easily", "east", "easy", "echo", "ecology",
"economy", "edge", "edit", "educate", "effort", "egg", "eight", "either", "elbow", "elder",
"electric", "elegant", "element", "elephant", "elevator", "elite", "else", "embark", "embody", "embrace",
"emerge", "emotion", "employ", "empower", "empty", "enable", "enact", "end", "endless", "endorse",
"enemy", "energy", "enforce", "engage", "engine", "enhance", "enjoy", "enlist", "enough", "enrich",
"enroll", "ensure", "enter", "entire", "entry", "envelope", "episode", "equal", "equip", "era",
"erase", "erode", "erosion", "error", "erupt", "escape", "essay", "essence", "estate", "eternal",
"ethics", "evidence", "evil", "evoke", "evolve", "exact", "example", "excess", "exchange", "excite",
"exclude", "excuse", "execute", "exercise", "exhaust", "exhibit", "exile", "exist", "exit", "exotic",
"expand", "expect", "expire", "explain", "expose", "express", "extend", "extra", "eye", "eyebrow",
"fabric", "face", "faculty", "fade", "faint", "faith", "fall", "false", "fame", "family",
"famous", "fan", "fancy", "fantasy", "farm", "fashion", "fat", "fatal", "father", "fatigue",
"fault", "favorite", "feature", "february", "federal", "fee", "feed", "feel", "female", "fence",
"festival", "fetch", "fever", "few", "fiber", "fiction", "field", "figure", "file", "film",
"filter", "final", "find", "fine", "finger", "finish", "fire", "firm", "first", "fiscal",
"fish", "fit", "fitness", "fix", "flag", "flame", "flash", "flat", "flavor", "flee",
"flight", "flip", "float", "flock", "floor", "flower", "fluid", "flush", "fly", "foam",
"focus", "fog", "foil", "fold", "follow", "food", "foot", "force", "forest", "forget",
"fork", "fortune", "forum", "forward", "fossil", "foster", "found", "fox", "fragile", "frame",
"frequent", "fresh", "friend", "fringe", "frog", "front", "frost", "frown", "frozen", "fruit",
"fuel", "fun", "funny", "furnace", "fury", "future", "gadget", "gain", "galaxy", "gallery",
"game", "gap", "garage", "garbage", "garden", "garlic", "garment", "gas", "gasp", "gate",
"gather", "gauge", "gaze", "general", "genius", "genre", "gentle", "genuine", "gesture", "ghost",
"giant", "gift", "giggle", "ginger", "giraffe", "girl", "give", "glad", "glance", "glare",
"glass", "glide", "glimpse", "globe", "gloom", "glory", "glove", "glow", "glue", "goat",
"goddess", "gold", "good", "goose", "gorilla", "gospel", "gossip", "govern", "gown", "grab",
"grace", "grain", "grant", "grape", "grass", "gravity", "great", "green", "grid", "grief",
"grit", "grocery", "group", "grow", "grunt", "guard", "guess", "guide", "guilt", "guitar",
"gun", "gym", "habit", "hair", "half", "hammer", "hamster", "hand", "happy", "harbor",
"hard", "harsh", "harvest", "hat", "have", "hawk", "hazard", "head", "health", "heart",
"heavy", "hedgehog", "height", "hello", "helmet", "help", "hen", "hero", "hidden", "high",
"hill", "hint", "hip", "hire", "history", "hobby", "hockey", "hold", "hole", "holiday",
"hollow", "home", "honey", "hood", "hope", "horn", "horror", "horse", "hospital", "host",
"hotel", "hour", "hover", "hub", "huge", "human", "humble", "humor", "hundred", "hungry",
"hunt", "hurdle", "hurry", "hurt", "husband", "hybrid", "ice", "icon", "idea", "identify",
"idle", "ignore", "ill", "illegal", "illness", "image", "imitate", "immense", "immune", "impact",
"impose", "improve", "impulse", "inch", "include", "income", "increase", "index", "indicate", "indoor",
"industry", "infant", "inflict", "inform", "inhale", "inherit", "initial", "inject", "injury", "inmate",
"inner", "innocent", "input", "inquiry", "insane", "insect", "inside", "inspire", "install", "intact",
"interest", "into", "invest", "invite", "involve", "iron", "island", "isolate", "issue", "item",
"ivy", "jacket", "jaguar", "jar", "jazz", "jealous", "jeans", "jelly", "jewel", "job",
"join", "joke", "journey", "joy", "judge", "juice", "jump", "jungle", "junior", "junk",
"just", "kangaroo", "keen", "keep", "ketchup", "key", "kick", "kid", "kidney", "kind",
"kingdom", "kiss", "kit", "kitchen", "kite", "kitten", "kiwi", "knee", "knife", "knock",
"know", "lab", "label", "labor", "ladder", "lady", "lake", "lamp", "language", "laptop",
"large", "later", "latin", "laugh", "laundry", "lava", "law", "lawn", "lawsuit", "layer",
"lazy", "leader", "leaf", "learn", "leave", "lecture", "left", "leg", "legal", "legend",
"leisure", "lemon", "lend", "length", "lens", "leopard", "lesson", "letter", "level", "liar",
"liberty", "library", "license", "life", "lift", "light", "like", "limb", "limit", "link",
"lion", "liquid", "list", "little", "live", "lizard", "load", "loan", "lobster", "local",
"lock", "logic", "lonely", "long", "loop", "lottery", "loud", "lounge", "love", "loyal",
"lucky", "luggage", "lumber", "lunar", "lunch", "luxury", "lyrics", "machine", "mad", "magic",
"magnet", "maid", "mail", "main", "major", "make", "mammal", "man", "manage", "mandate",
"mango", "mansion", "manual", "maple", "marble", "march", "margin", "marine", "market", "marriage",
"mask", "mass", "master", "match", "material", "math", "matrix", "matter", "maximum", "maze",
"meadow", "mean", "measure", "meat", "mechanic", "medal", "media", "melody", "melt", "member",
"memory", "mention", "menu", "mercy", "merge", "merit", "merry", "mesh", "message", "metal",
"method", "middle", "midnight", "milk", "million", "mimic", "mind", "minimum", "minor", "minute",
"miracle", "mirror", "misery", "miss", "mistake", "mix", "mixed", "mixture", "mobile", "model",
"modify", "mom", "moment", "monitor", "monkey", "monster", "month", "moon", "moral", "more",
"morning", "mosquito", "mother", "motion", "motor", "mountain", "mouse", "move", "movie", "much",
"muffin", "mule", "multiply", "muscle", "museum", "mushroom", "music", "must", "mutual", "myself",
"mystery", "myth", "naive", "name", "napkin", "narrow", "nasty", "nation", "nature", "near",
"neck", "need", "negative", "neglect", "neither", "nephew", "nerve", "nest", "net", "network",
"neutral", "never", "news", "next", "nice", "night", "noble", "noise", "nominee", "noodle",
"normal", "north", "nose", "notable", "note", "nothing", "notice", "novel", "now", "nuclear",
"number", "nurse", "nut", "oak", "obey", "object", "oblige", "obscure", "observe", "obtain",
"obvious", "occur", "ocean", "october", "odor", "off", "offer", "office", "often", "oil",
"okay", "old", "olive", "olympic", "omit", "once", "one", "onion", "online", "only",
"open", "opera", "opinion", "oppose", "option", "orange", "orbit", "orchard", "order", "ordinary",
"organ", "orient", "original", "orphan", "ostrich", "other", "outdoor", "outer", "output", "outside",
"oval", "oven", "over", "own", "owner", "oxygen", "oyster", "ozone", "pact", "paddle",
"page", "pair", "palace", "palm", "panda", "panel", "panic", "panther", "paper", "parade",
"parent", "park", "parrot", "party", "pass", "patch", "path", "patient", "patrol", "pattern",
"pause", "pave", "payment", "peace", "peanut", "pear", "peasant", "pelican", "pen", "penalty",
"pencil", "people", "pepper", "perfect", "permit", "person", "pet", "phone", "photo", "phrase",
"physical", "piano", "picnic", "picture", "piece", "pig", "pigeon", "pill", "pilot", "pink",
"pioneer", "pipe", "pistol", "pitch", "pizza", "place", "planet", "plastic", "plate", "play",
"please", "pledge", "pluck", "plug", "plunge", "poem", "poet", "point", "polar", "pole",
"police", "pond", "pony", "pool", "popular", "portion", "position", "possible", "post", "potato",
"pottery", "poverty", "powder", "power", "practice", "praise", "predict", "prefer", "prepare", "present",
"pretty", "prevent", "price", "pride", "primary", "print", "priority", "prison", "private", "prize",
"problem", "process", "produce", "profit", "program", "project", "promote", "proof", "property", "prosper",
"protect", "proud", "provide", "public", "pudding", "pull", "pulp", "pulse", "pumpkin", "punch",
"pupil", "puppy", "purchase", "purity", "purpose", "purse", "push", "put", "puzzle", "pyramid",
"quality", "quantum", "quarter", "question", "quick", "quit", "quiz", "quote", "rabbit", "raccoon",
"race", "rack", "radar", "radio", "rail", "rain", "raise", "rally", "ramp", "ranch",
"random", "range", "rapid", "rare", "rate", "rather", "raven", "raw", "razor", "ready",
"real", "reason", "rebel", "rebuild", "recall", "receive", "recipe", "record", "recycle", "reduce",
"reflect", "reform", "refuse", "region", "regret", "regular", "reject", "relax", "release", "relief",
"rely", "remain", "remember", "remind", "remove", "render", "renew", "rent", "reopen", "repair",
"repeat", "replace", "report", "require", "rescue", "resemble", "resist", "resource", "response", "result",
"retire", "retreat", "return", "reunion", "reveal", "review", "reward", "rhythm", "rib", "ribbon",
"rice", "rich", "ride", "ridge", "rifle", "right", "rigid", "ring", "riot", "ripple",
"risk", "ritual", "rival", "river", "road", "roast", "robot", "robust", "rocket", "romance",
"roof", "rookie", "room", "rose", "rotate", "rough", "round", "route", "royal", "rubber",
"rude", "rug", "rule", "run", "runway", "rural", "sad", "saddle", "sadness", "safe",
"sail", "salad", "salmon", "salon", "salt", "salute", "same", "sample", "sand", "satisfy",
"satoshi", "sauce", "sausage", "save", "say", "scale", "scan", "scare", "scatter", "scene",
"scheme", "school", "science", "scissors", "scorpion", "scout", "scrap", "screen", "script", "scrub",
"sea", "search", "season", "seat", "second", "secret", "section", "security", "seed", "seek",
"segment", "select", "sell", "seminar", "senior", "sense", "sentence", "series", "service", "session",
"settle", "setup", "seven", "shadow", "shaft", "shallow", "share", "shed", "shell", "sheriff",
"shield", "shift", "shine", "ship", "shiver", "shock", "shoe", "shoot", "shop", "short",
"shoulder", "shove", "shrimp", "shrug", "shuffle", "shy", "sibling", "sick", "side", "siege",
"sight", "sign", "silent", "silk", "silly", "silver", "similar", "simple", "since", "sing",
"siren", "sister", "situate", "six", "size", "skate", "sketch", "ski", "skill", "skin",
"skirt", "skull", "slab", "slam", "sleep", "slender", "slice", "slide", "slight", "slim",
"slogan", "slot", "slow", "slush", "small", "smart", "smile", "smoke", "smooth", "snack",
"snake", "snap", "sniff", "snow", "soap", "soccer", "social", "sock", "soda", "soft",
"solar", "soldier", "solid", "solution", "solve", "someone", "song", "soon", "sorry", "sort",
"soul", "sound", "soup", "source", "south", "space", "spare", "spatial", "spawn", "speak",
"special", "speed", "spell", "spend", "sphere", "spice", "spider", "spike", "spin", "spirit",
"split", "spoil", "sponsor", "spoon", "sport", "spot", "spray", "spread", "spring", "spy",
"square", "squeeze", "squirrel", "stable", "stadium", "staff", "stage", "stairs", "stamp", "stand",
"start", "state", "stay", "steak", "steel", "stem", "step", "stereo", "stick", "still",
"sting", "stock", "stomach", "stone", "stool", "story", "stove", "strategy", "street", "strike",
"strong", "struggle", "student", "stuff", "stumble", "style", "subject", "submit", "subway", "success",
"such", "sudden", "suffer", "sugar", "suggest", "suit", "summer", "sun", "sunny", "sunset",
"super", "supply", "supreme", "sure", "surface", "surge", "surprise", "surround", "survey", "suspect",
"sustain", "swallow", "swamp", "swap", "swarm", "swear", "sweet", "swift", "swim", "swing",
"switch", "sword", "symbol", "symptom", "syrup", "system", "table", "tackle", "tag", "tail",
"talent", "talk", "tank", "tape", "target", "task", "taste", "tattoo", "taxi", "teach",
"team", "tell", "ten", "tenant", "tennis", "tent", "term", "test", "text", "thank",
"that", "theme", "then", "theory", "there", "they", "thing", "this", "thought", "three",
"thrive", "throw", "thumb", "thunder", "ticket", "tide", "tiger", "tilt", "timber", "time",
"tiny", "tip", "tired", "tissue", "title", "toast", "tobacco", "today", "toddler", "toe",
"together", "toilet", "token", "tomato", "tomorrow", "tone", "tongue", "tonight", "tool", "tooth",
"top", "topic", "topple", "torch", "tornado", "tortoise", "toss", "total", "tourist", "toward",
"tower", "town", "toy", "track", "trade", "traffic", "tragic", "train", "transfer", "trap",
"trash", "travel", "tray", "treat", "tree", "trend", "trial", "tribe", "trick", "trigger",
"trim", "trip", "trophy", "trouble", "truck", "true", "truly", "trumpet", "trust", "truth",
"try", "tube", "tuition", "tumble", "tuna", "tunnel", "turkey", "turn", "turtle", "twelve",
"twenty", "twice", "twin", "twist", "two", "type", "typical", "ugly", "umbrella", "unable",
"uncle", "uncover", "under", "undo", "unfair", "unfold", "unhappy", "uniform", "unique", "unit",
"universe", "unknown", "unlock", "until", "unusual", "unveil", "update", "upgrade", "uphold", "upon",
"upper", "upset", "urban", "urge", "usage", "use", "used", "useful", "useless", "usual",
"utility", "vacant", "vacuum", "vague", "valid", "valley", "valve", "van", "vanish", "vapor",
"various", "vast", "vault", "vehicle", "velvet", "vendor", "venture", "venue", "verb", "verify",
"version", "very", "vessel", "veteran", "viable", "vibrant", "vicious", "victory", "video", "view",
"village", "vintage", "violin", "virtual", "virus", "visa", "visit", "visual", "vital", "vivid",
"vocal", "voice", "void", "volcano", "volume", "vote", "voyage", "wage", "wagon", "wait",
"walk", "wall", "walnut", "want", "warfare", "warm", "warrior", "wash", "wasp", "waste",
"water", "wave", "way", "wealth", "weapon", "wear", "weasel", "weather", "web", "wedding",
"weekend", "weird", "welcome", "west", "wet", "whale", "what", "wheat", "wheel", "when",
"where", "whip", "whisper", "wide", "width", "wife", "wild", "will", "win", "window",
"wine", "wing", "wink", "winner", "winter", "wire", "wisdom", "wise", "wish", "witness",
"wolf", "woman", "wonder", "wood", "wool", "word", "work", "world", "worry", "worth",
"wrap", "wreck", "wrestle", "wrist", "write", "wrong", "yard", "year", "yellow", "you",
"young", "youth", "zebra", "zero", "zone", "zoo"
)
// 扩展助记词表(约 4 倍于基础词表,合计约 5 倍词库)
val MNEMONIC_WORDS_EXTRA = listOf(
"abacus", "abbey", "abbreviation", "abdomen", "abide", "aboard", "abolish", "abound", "abrasive", "abreast",
"abridge", "abroad", "abrupt", "absentee", "absorbent", "abstain", "abstract", "absurdity", "abundance", "abundant",
"abuse", "abyss", "academia", "academic", "academy", "accelerate", "accent", "accept", "acceptable", "accessory",
"acclaim", "acclimate", "accolade", "accommodate", "accompany", "accomplice", "accomplish", "accord", "accordion", "accountant",
"accreditation", "accumulate", "accuracy", "accusation", "accustom", "acetone", "achieve", "aching", "acidic", "acknowledge",
"acoustic", "acquaint", "acquire", "acquisition", "acrobat", "acronym", "acropolis", "acrylic", "acting", "activation",
"activist", "activity", "actuality", "acumen", "acupuncture", "adaptation", "adapter", "addiction", "additive", "address",
"adept", "adequacy", "adhesive", "adjacent", "adjective", "adjourn", "adjustment", "admin", "admiral", "admission",
"adobe", "adolescent", "adoption", "adrenaline", "adult", "advancement", "advent", "adventure", "adverb", "adversary",
"adverse", "advertise", "advertisement", "advocate", "aerial", "aerobic", "aerospace", "aesthetic", "affection", "affidavit",
"affiliate", "affinity", "affirmation", "afford", "affordable", "aftermath", "afternoon", "afterward", "agenda", "aggregate",
"aggression", "aggressive", "agile", "agility", "agony", "agreeable", "agreement", "agriculture", "ahead", "ailment",
"airline", "airplane", "airspace", "airway", "aisle", "alarm", "albatross", "alchemy", "alcohol", "algebra",
"algorithm", "alignment", "alimony", "allegation", "allegiance", "allegory", "allergy", "alleyway", "alliance", "alligator",
"allocation", "allotment", "allowance", "alloy", "allure", "almond", "alphabet", "altar", "alteration", "alternate",
"alternative", "altitude", "alto", "aluminum", "alumni", "amalgam", "amateur", "amazing", "ambassador", "amber",
"ambiguity", "ambiguous", "ambition", "ambitious", "ambulance", "ambush", "amendment", "amenity", "ammonia", "ammunition",
"amnesia", "amnesty", "amplifier", "amplify", "amputate", "amusement", "analog", "analogy", "analyst", "analytical",
"anarchist", "anarchy", "anatomy", "ancestor", "ancestry", "anchovy", "anecdote", "anemia", "anesthesia", "angel",
"angler", "anguish", "angular", "animation", "animosity", "anklet", "annex", "anniversary", "announcement", "announcer",
"annual", "annuity", "anomaly", "anonymous", "antagonist", "antarctic", "anteater", "antelope", "antenna", "anthem",
"anthology", "anthropology", "antibiotic", "antibody", "anticipate", "anticipation", "antidote", "antique", "antiquity", "antler",
"antonym", "anxiety", "apartment", "apex", "apology", "apostle", "apparatus", "apparel", "appetite", "appetizer",
"appliance", "applicant", "application", "appointment", "appraisal", "appreciate", "appreciation", "apprentice", "approach", "approval",
"approximate", "apricot", "aquarium", "aquatic", "arbiter", "arbitrary", "arbitration", "arbor", "arcade", "archaeology",
"archbishop", "architect", "architecture", "archive", "ardent", "arena", "argon", "argument", "aristocrat", "arithmetic",
"armadillo", "armament", "armchair", "armful", "armistice", "armory", "aroma", "aromatic", "arousal", "arrangement",
"array", "arrears", "arrogant", "arrowhead", "arson", "artery", "artichoke", "articulate", "artifact", "artisan",
"artistry", "ascend", "ascent", "ascertain", "ascribe", "asphalt", "aspiration", "aspirin", "assassin", "assault",
"assemblage", "assembly", "assertion", "assessment", "assignment", "assimilation", "assistance", "assistant", "associate", "association",
"assumption", "assurance", "asteroid", "asthma", "astrology", "astronaut", "astronomy", "asymmetric", "atheist", "athletic",
"atmosphere", "atom", "atomic", "atrocity", "attachment", "attacker", "attainment", "attendance", "attendant", "attention",
"attest", "attic", "attitude", "attorney", "attraction", "attractive", "attribute", "auctioneer", "audience", "auditor",
"auditory", "augment", "august", "aurora", "auspicious", "authentic", "authority", "authorization", "autobiography", "automation",
"automobile", "autonomy", "autumn", "availability", "avalanche", "avatar", "avenger", "aviation", "aviator", "avocado",
"avoidance", "awakening", "award", "awareness", "awful", "awkward", "backbone", "backdrop", "backfire", "background",
"backpack", "backup", "backward", "bacon", "bacteria", "bacterial", "badge", "badger", "badminton", "bagel",
"baggage", "bagpipe", "bailiff", "bakery", "balance", "balcony", "ballet", "balloon", "ballot", "ballroom",
"bamboo", "banister", "banjo", "banker", "banking", "bankruptcy", "banquet", "barbecue", "barbarian", "barbecue",
"barber", "barcode", "barefoot", "bargain", "barge", "baritone", "barley", "barnacle", "barometer", "baron",
"barracks", "barrel", "barricade", "barrier", "barrister", "barrow", "bartender", "baseball", "baseboard", "baseline",
"basement", "basin", "basketball", "bassoon", "bastion", "batch", "bathrobe", "bathroom", "battalion", "battery",
"battleship", "bazaar", "beacon", "beaker", "beanstalk", "bearer", "bearish", "beast", "beatitude", "beautician",
"beauty", "bedroom", "bedside", "bedspread", "bedtime", "beehive", "beekeeper", "beetle", "beforehand", "beggar",
"beginner", "begonia", "behavior", "belonging", "benchmark", "benediction", "benefactor", "beneficiary", "benevolent", "benign",
"bestseller", "beverage", "bewilder", "beyond", "bibliography", "bicycle", "biennial", "bifocal", "bilateral", "bilingual",
"billboard", "billion", "billow", "binary", "binocular", "biography", "biological", "biologist", "biology", "biopsy",
"bipartisan", "birthday", "birthplace", "birthright", "biscuit", "bishop", "blackberry", "blackbird", "blackboard", "blackout",
"blacksmith", "bladder", "blade", "blank", "blanket", "blasphemy", "blast", "blazer", "bleach", "bleacher",
"bleeding", "blender", "blessing", "blight", "blimp", "blinder", "blizzard", "blockade", "blockage", "blockbuster",
"blocker", "bloodshed", "bloodstream", "bloody", "bloom", "blossom", "blotter", "blouse", "blueberry", "bluebird",
"blueprint", "blunder", "blur", "blush", "boardroom", "boardwalk", "boast", "boaster", "boatman", "bodyguard",
"bodywork", "boiler", "boldness", "bolster", "bolt", "bombard", "bomber", "bondage", "bonfire", "bonnet",
"bonus", "bookcase", "bookend", "bookkeeper", "booklet", "bookmark", "bookstore", "boomerang", "booth", "borderline",
"bore", "borough", "borrower", "botany", "bottleneck", "bottomless", "boulevard", "bounce", "boundary", "boundless",
"bounty", "bouquet", "bourbon", "boutique", "bowler", "bowling", "bowstring", "boxer", "boxing", "boycott",
"boyfriend", "boyhood", "bracelet", "bracket", "brainstorm", "brainwash", "brainy", "branch", "brand", "brandy",
"brass", "bratwurst", "bravery", "bravery", "breadcrumb", "breadth", "breadwinner", "breakdown", "breakfast", "breakthrough",
"breakup", "breakwater", "breast", "breaststroke", "breath", "breathe", "breather", "breezeway", "brewery", "bribery",
"briefcase", "briefing", "brigade", "brigadier", "brightness", "brilliance", "brimstone", "brine", "broadband", "broadcast",
"broadway", "brochure", "broiler", "broker", "brokerage", "bronze", "brooch", "brotherhood", "browbeat", "browser",
"brunch", "brunette", "brutal", "brutality", "bubble", "bubbly", "bucket", "buckle", "buckskin", "buddha",
"buddhist", "budget", "buffalo", "buffer", "buffet", "buffoon", "builder", "building", "bulldog", "bulldozer",
"bullet", "bulletin", "bullfight", "bullfrog", "bullion", "bullish", "bullpen", "bullring", "bumblebee", "bumper",
"bunch", "bungalow", "bunkhouse", "bunkhouse", "buoyancy", "burden", "bureaucrat", "burglar", "burglary", "burial",
"burlap", "burner", "burnout", "burrito", "burst", "busboy", "bushel", "businessman", "businesswoman", "busker",
"bustle", "butane", "butcher", "buttercup", "butterfly", "buttermilk", "butterscotch", "buttress", "buzzard", "buzzer",
"bygone", "bypass", "byproduct", "byte", "cabaret", "cabbage", "cabinet", "cable", "cache", "cactus",
"cadence", "cadet", "cadre", "cafe", "caffeine", "cage", "cajole", "calamity", "calcium", "calculator",
"calendar", "caliber", "calibration", "calorie", "calypso", "camcorder", "cameo", "camouflage", "campaign", "campfire",
"campus", "canary", "cancellation", "cancer", "candidate", "candle", "candlestick", "candor", "candy", "cane",
"canine", "cannabis", "cannon", "canoe", "canopy", "cantaloupe", "canteen", "canvas", "canyon", "capability",
"capacitor", "capacity", "caper", "capitalism", "capitalist", "capitol", "capricorn", "capsule", "captain", "caption",
"captive", "captivity", "capture", "caramel", "caravan", "carbohydrate", "carbon", "cardboard", "cardigan", "cardinal",
"career", "carefree", "caregiver", "caretaker", "caricature", "carnival", "carnivore", "carousel", "carpenter", "carpet",
"carriage", "carrier", "carrot", "cartel", "cartilage", "cartographer", "cartoon", "cartridge", "carve", "carving",
"cascade", "cashew", "cashier", "cashmere", "casino", "casket", "cassette", "castaway", "castle", "casualty",
"catacomb", "catalog", "catalyst", "catapult", "catastrophe", "catchment", "catchphrase", "catchy", "category", "caterer",
"caterpillar", "catfish", "cathedral", "cation", "catnip", "cauliflower", "causeway", "caution", "cavalry", "caveman",
"cavern", "caviar", "cavity", "cedar", "celebration", "celebrity", "celery", "celestial", "cellar", "cellist",
"cellphone", "cellular", "cement", "cemetery", "censorship", "census", "centennial", "center", "centerpiece", "centigrade",
"centimeter", "central", "centralize", "century", "ceramic", "cereal", "cerebral", "ceremony", "certainty", "certificate",
"certification", "chafe", "chagrin", "chain", "chairman", "chairperson", "chalet", "challenge", "chamber", "champion",
"championship", "chancellor", "chandelier", "chandler", "change", "channel", "chant", "chaos", "chaplain", "chapter",
"character", "characteristic", "charcoal", "charity", "charlatan", "charm", "charter", "chasm", "chassis", "chastity",
"chateau", "chatter", "chauffeur", "checkbook", "checker", "checklist", "checkmate", "checkout", "checkpoint", "cheekbone",
"cheerleader", "cheese", "cheetah", "chemical", "chemist", "chemistry", "cherish", "chess", "chestnut", "chew",
"chickadee", "chicken", "chiffon", "childbirth", "childhood", "childish", "chill", "chime", "chimney", "chinaware",
"chipmunk", "chiropractor", "chisel", "chivalry", "chlorine", "chlorophyll", "chocolate", "choice", "choir", "cholera",
"cholesterol", "chord", "chorus", "christen", "chromium", "chromosome", "chronicle", "chronological", "chrysanthemum", "chuckle",
"chunk", "church", "cigarette", "cinema", "circuit", "circular", "circulation", "circumference", "circumstance", "circus",
"citation", "citizen", "citizenship", "citrus", "civilian", "civilization", "clarity", "classic", "classical", "classification",
"classmate", "classroom", "clause", "clavier", "cleaner", "cleaning", "clearance", "clearing", "cleavage", "cleaver",
"clemency", "clergy", "clergyman", "cleric", "clerk", "clever", "client", "clientele", "cliff", "climate",
"climax", "climb", "clinic", "clinical", "clipper", "clipping", "cloak", "cloakroom", "clockwork", "clog",
"clone", "closure", "clothes", "clothing", "cloudburst", "cloudy", "clover", "clown", "cluster", "clutch",
"coach", "coagulate", "coalition", "coastline", "coating", "cockpit", "cockroach", "cocktail", "cocoa", "coconut",
"codfish", "codify", "coeditor", "coeducation", "coefficient", "coexistence", "coffee", "coffin", "cognition", "cognitive",
"coherence", "cohesion", "cohort", "coincidence", "colander", "collaboration", "collage", "collapse", "collar", "collateral",
"colleague", "collection", "collective", "collector", "college", "collision", "colloquium", "colonel", "colonial", "colonist",
"colonization", "colony", "colossal", "columnist", "combat", "combatant", "combination", "combine", "combustion", "comedian",
"comedy", "comet", "comfort", "comic", "comma", "command", "commander", "commando", "commemoration", "commence",
"commencement", "commendation", "commentary", "commentator", "commerce", "commercial", "commission", "commissioner", "commitment", "committee",
"commodity", "commonwealth", "commotion", "communal", "communication", "communion", "communist", "community", "commuter", "compact",
"companion", "company", "comparison", "compartment", "compassion", "compatibility", "compensation", "competence", "competition", "competitor",
"compilation", "complaint", "complement", "completion", "complexity", "compliance", "compliment", "component", "composer", "composite",
"composition", "compost", "composure", "compound", "comprehension", "compression", "compromise", "computation", "computer", "comrade",
"concealment", "concept", "conception", "concern", "concert", "concession", "concerto", "conclusion", "concrete", "concur",
"condemnation", "condiment", "condition", "conditioner", "condolence", "condominium", "condor", "conductor", "cone", "confection",
"confederation", "conference", "confession", "confetti", "confidence", "configuration", "confinement", "confirmation", "conflict", "conformity",
"confrontation", "confusion", "congestion", "conglomerate", "congratulation", "congregation", "congress", "conjunction", "connection", "connoisseur",
"conquest", "conscience", "consciousness", "consecration", "consensus", "consent", "consequence", "conservation", "conservative", "conservatory",
"consideration", "consignment", "consistency", "consolation", "consonant", "conspiracy", "constable", "constancy", "constellation", "constituency",
"constitution", "constraint", "construction", "consultant", "consultation", "consumer", "consumption", "contact", "contagion", "container",
"contamination", "contemplation", "contemporary", "contender", "contentment", "contest", "context", "continent", "contingency", "continuation",
"continuity", "contour", "contraption", "contribution", "contributor", "contrivance", "controller", "controversy", "convenience", "convention",
"conversation", "conversion", "converter", "conviction", "convoy", "convulsion", "cookbook", "cooker", "cookie", "cooking",
"cooperation", "coordinator", "copilot", "copper", "copyright", "cord", "cordial", "cordon", "corduroy", "cornerstone",
"cornfield", "cornflake", "cornstalk", "coronation", "corporal", "corporation", "corpse", "corpuscle", "corral", "correction",
"correlation", "correspondence", "corridor", "corrosion", "corruption", "corsage", "corset", "cosmetic", "cosmic", "cosmology",
"cosmonaut", "cosmos", "costume", "cottage", "cotton", "couch", "cougar", "council", "counsel", "counselor",
"countdown", "counter", "counterpart", "countess", "countryside", "county", "coupon", "courage", "courier", "courtroom",
"courtship", "courtyard", "cousin", "coverage", "coward", "cowboy", "cowgirl", "crab", "cracker", "cradle",
"craftsman", "cramp", "cranberry", "crane", "cranium", "crate", "crater", "crayon", "creation", "creativity",
"creator", "creature", "credential", "credibility", "creditor", "creed", "creek", "creep", "cremation", "creole",
"crescent", "crest", "crevice", "crew", "crewman", "crib", "cricket", "crime", "criminal", "crimson",
"cripple", "crisis", "criterion", "critic", "criticism", "crocodile", "croissant", "crook", "crossbow", "crossing",
"crossroad", "crosswalk", "crossword", "crow", "crowd", "crown", "crucifix", "cruise", "crumb", "crumble",
"crusade", "crusader", "crush", "crystal", "cub", "cube", "cubicle", "cucumber", "cue", "cuisine",
"culprit", "cultivation", "culture", "cumin", "cupboard", "cupcake", "curator", "curfew", "curiosity", "curler",
"curriculum", "curry", "cursor", "curtain", "curve", "cushion", "custard", "custodian", "custody", "custom",
"customer", "cutlery", "cutlet", "cutting", "cyclone", "cylinder", "cymbal", "cynic", "cynical", "cypress",
"cyst", "daffodil", "dagger", "dairy", "daisy", "dam", "damage", "dame", "damn", "dampness",
"dancer", "dandelion", "dandruff", "danger", "daredevil", "darkness", "darling", "dart", "dashboard", "database",
"date", "daughter", "dawn", "daybreak", "daydream", "daylight", "daytime", "deadline", "deadlock", "dealer",
"dealership", "dean", "death", "debate", "debtor", "debut", "decade", "decadence", "decaf", "decanter",
"deception", "decibel", "decimal", "decision", "deck", "declaration", "decline", "decoder", "decoration", "decorator",
"decrease", "decree", "dedication", "deduction", "deed", "default", "defeat", "defect", "defendant", "defender",
"defense", "deferral", "deficiency", "deficit", "definition", "deflation", "deflection", "deformity", "defrost", "degenerate",
"degradation", "degree", "dehydration", "deity", "delay", "delegate", "delegation", "deletion", "delicacy", "delight",
"delinquent", "delivery", "delta", "delusion", "demand", "democracy", "democrat", "demolition", "demon", "demonstration",
"demotion", "denim", "denomination", "denominator", "density", "dent", "dentist", "department", "departure", "dependence",
"dependency", "depiction", "deposit", "depot", "depreciation", "depression", "deprivation", "depth", "deputy", "derby",
"derivation", "derivative", "derrick", "descendant", "descent", "description", "desert", "designer", "desire", "desk",
"desktop", "dessert", "destination", "destiny", "destruction", "detachment", "detective", "detector", "detention", "detergent",
"deterrent", "detour", "detox", "developer", "development", "deviation", "device", "devotee", "devotion", "dew",
"diagnosis", "diagram", "dialect", "dialogue", "diameter", "diamond", "diaper", "diaphragm", "diary", "dictionary",
"diesel", "dietitian", "difference", "differential", "differentiation", "difficulty", "diffusion", "digest", "digestion", "digger",
"digit", "dignity", "dilemma", "diligence", "dilution", "dimension", "diminutive", "dinosaur", "diploma", "diplomat",
"directory", "disability", "disadvantage", "disagreement", "disaster", "disc", "discard", "disciple", "discipline", "disclaimer",
"disclosure", "disco", "discomfort", "disconnect", "discount", "discourse", "discovery", "discrepancy", "discretion", "discrimination",
"discussion", "disdain", "disease", "disgrace", "disguise", "disgust", "dishwasher", "disk", "dismissal", "disorder",
"dispatch", "dispenser", "displacement", "display", "disposal", "disposition", "dispute", "disruption", "dissection", "dissident",
"dissolution", "distance", "distinction", "distortion", "distribution", "district", "disturbance", "diver", "diversity", "dividend",
"divinity", "division", "divorce", "dizziness", "dock", "doctor", "doctrine", "document", "documentary", "documentation",
"doghouse", "dogma", "doll", "dollar", "dolphin", "domain", "dome", "domestic", "dominance", "dominion",
"donation", "donor", "doorbell", "doorway", "dormitory", "dosage", "dossier", "dot", "double", "dough",
"doughnut", "dove", "downfall", "downpayment", "downpour", "downside", "downtown", "downturn", "dozen", "draft",
"dragon", "drainage", "drama", "dramatic", "drawer", "drawing", "dream", "dresser", "dressing", "drill",
"drinking", "drive", "driver", "driveway", "drizzle", "dromedary", "droplet", "drought", "drummer", "dryer",
"duchess", "duckling", "dugout", "duke", "dumpling", "duplicate", "durability", "duration", "dusk", "dust",
"duty", "dwarf", "dwelling", "dynamics", "dynamo", "dynasty", "eagle", "earache", "eardrum", "earl",
"earnest", "earring", "earthquake", "earthworm", "easel", "east", "easter", "echo", "eclipse", "ecology",
"economist", "economy", "ecosystem", "eddy", "edge", "edition", "editor", "editorial", "education", "educator",
"eel", "effect", "efficiency", "effort", "eggplant", "ego", "ejection", "elaboration", "elastic", "elbow",
"election", "electorate", "electrician", "electricity", "electron", "electronics", "element", "elephant", "elevation", "elevator",
"eligibility", "elimination", "elite", "ellipse", "elm", "elongation", "embassy", "embroidery", "embryo", "emergency",
"emigrant", "emigration", "eminence", "emission", "emotion", "emperor", "emphasis", "empire", "employer", "employment",
"empowerment", "enactment", "enclosure", "encounter", "encouragement", "encyclopedia", "endorsement", "endurance", "enemy", "energy",
"enforcement", "engagement", "engine", "engineer", "engineering", "enigma", "enjoyment", "enlightenment", "enrollment", "ensemble",
"enterprise", "entertainment", "enthusiasm", "entity", "entrance", "entry", "envelope", "environment", "enzyme", "epic",
"epidemic", "episode", "epoch", "equality", "equation", "equator", "equipment", "equity", "equivalent", "era",
"erosion", "errand", "error", "escalator", "escape", "escort", "essay", "essence", "establishment", "estate",
"estimate", "estimation", "estuary", "eternity", "ethics", "ethnicity", "etiquette", "eucalyptus", "eulogy", "euro",
"evacuation", "evaluation", "evaporation", "evening", "event", "evidence", "evolution", "examination", "examiner", "example",
"excavation", "exception", "excerpt", "excess", "exchange", "excitement", "exclamation", "exclusion", "excursion", "execution",
"executive", "exemption", "exercise", "exhaust", "exhibition", "exile", "existence", "expansion", "expectation", "expedition",
"expense", "experience", "experiment", "expert", "expertise", "expiration", "explanation", "exploration", "explorer", "explosion",
"export", "exporter", "exposure", "expression", "extension", "extent", "exterior", "extinction", "extract", "extraction",
"extradition", "extreme", "fabrication", "facade", "facet", "facility", "facsimile", "factor", "factory", "faculty",
"fahrenheit", "failure", "fairness", "fairy", "faith", "falcon", "fallout", "fame", "familiarity", "family",
"famine", "fanatic", "fantasy", "fare", "farmhouse", "fascination", "fashion", "fastener", "fatality", "fate",
"father", "fatigue", "faucet", "favor", "favorite", "feather", "feature", "federation", "feedback", "feeling",
"fellowship", "feminist", "fencing", "ferry", "fertility", "festival", "fiber", "fiction", "fidelity", "field",
"fighter", "figure", "filament", "filing", "filter", "finale", "finance", "financier", "finding", "fingerprint",
"finish", "firearm", "fireplace", "firework", "firm", "fisherman", "fishery", "fitness", "fixture", "flame",
"flank", "flashlight", "flatware", "flavor", "flaw", "flea", "fleet", "flesh", "flexibility", "flicker",
"flood", "floor", "flour", "flower", "flu", "fluency", "fluid", "fluorescence", "flush", "flute",
"flux", "flyer", "foe", "fog", "foliage", "folklore", "follower", "folly", "fondness", "font",
"food", "footage", "football", "footprint", "footstep", "footwear", "force", "forecast", "forehead", "foreman",
"forensic", "forest", "forester", "forever", "forgiveness", "formality", "formation", "formula", "fort", "fortress",
"fortune", "forum", "foundation", "founder", "fountain", "fraction", "fracture", "fragment", "fragrance", "frame",
"framework", "franchise", "frank", "fraud", "freedom", "freelance", "freeway", "freezer", "freight", "frequency",
"fresco", "freshman", "friction", "friendship", "fright", "fringe", "frontier", "frost", "frown", "fruit",
"frustration", "fuel", "fulfillment", "function", "functionality", "fund", "funding", "fundraiser", "funeral", "furnace",
"furniture", "fusion", "futon", "future", "gadget", "galaxy", "gallery", "gamble", "game", "gang",
"garage", "garbage", "garden", "gardener", "garlic", "garment", "gas", "gasoline", "gasp", "gate",
"gateway", "gathering", "gauge", "gazebo", "gazette", "gear", "gem", "gender", "gene", "generation",
"generator", "generosity", "genesis", "genetics", "genius", "genre", "gentleman", "geography", "geology", "geometry",
"geranium", "germ", "gesture", "ghost", "giant", "gift", "gigabyte", "gimmick", "ginger", "giraffe",
"girlfriend", "girlhood", "glacier", "gladiator", "glance", "gland", "glare", "glass", "glaze", "gleam",
"glider", "glimpse", "globe", "gloom", "glory", "glossary", "glove", "glow", "glucose", "glue",
"glycerin", "goalkeeper", "goal", "goat", "goblin", "goddess", "gold", "golf", "gondola", "goodness",
"goodwill", "gorilla", "gospel", "gossip", "governor", "gown", "grace", "grade", "grader", "gradient",
"graduation", "grain", "grammar", "grandchild", "granddaughter", "grandfather", "grandmother", "grandparent", "grandson", "grandstand",
"granite", "grant", "grapefruit", "graph", "graphic", "grasp", "grass", "gratitude", "gravel", "gravitation",
"gravity", "gravy", "grease", "greatness", "greed", "greenhouse", "greeting", "grid", "grief", "grill",
"grimace", "grin", "grip", "grocery", "groom", "gross", "ground", "group", "grove", "growth",
"guarantee", "guardian", "guerrilla", "guest", "guidance", "guide", "guideline", "guild", "guilt", "guitar",
"gulf", "gum", "gunpowder", "gymnasium", "habit", "habitat", "hack", "hacker", "hail", "haircut",
"hairdo", "hairpin", "halibut", "hallway", "hamburger", "hammer", "hamster", "handbag", "handful", "handicap",
"handkerchief", "handle", "handler", "handwriting", "hanger", "happiness", "harassment", "harbor", "hardware", "harmony",
"harness", "harp", "harvest", "haste", "hatch", "hatred", "haul", "haven", "havoc", "hazard",
"headache", "headlight", "headline", "headphone", "headquarters", "headrest", "healing", "health", "heap", "hearing",
"heartbeat", "heartbreak", "heater", "heating", "heaven", "heaviness", "hedge", "heel", "height", "heir",
"helicopter", "helium", "helmet", "hemisphere", "hemorrhage", "hen", "herald", "herb", "herd", "heredity",
"heritage", "hero", "heroin", "heroine", "hesitation", "hexagon", "hierarchy", "highland", "highway", "hike",
"hiker", "hiking", "hill", "hint", "hip", "hire", "historian", "history", "hobby", "hockey",
"holder", "hole", "holiday", "hollow", "homeland", "homemade", "hometown", "homework", "homicide", "homogeny",
"honesty", "honey", "honeymoon", "honor", "hood", "hook", "hop", "hope", "horizon", "hormone",
"horn", "horror", "horse", "hose", "hospital", "hospitality", "host", "hostage", "hostel", "hostess",
"hotel", "hour", "household", "housekeeper", "housewife", "housework", "housing", "hub", "hug", "humanity",
"humidity", "humor", "hunch", "hundred", "hunger", "hunter", "hunting", "hurdle", "hurricane", "hurry",
"husband", "hush", "hybrid", "hydrant", "hydrogen", "hygiene", "hymn", "hyphen", "hypnosis", "hypothesis",
"iceberg", "icebox", "icicle", "icon", "idea", "ideal", "identity", "ideology", "idiom", "idiot",
"idol", "igloo", "ignorance", "illusion", "illustration", "image", "imagination", "imbalance", "imitation", "immigrant",
"immigration", "impact", "impairment", "impatience", "imperative", "imperial", "implication", "import", "importance", "impostor",
"impression", "imprisonment", "improvement", "impulse", "inability", "inaccuracy", "incentive", "incident", "inclination", "income",
"incompetence", "inconvenience", "increase", "independence", "index", "indication", "indicator", "indifference", "indigenous", "indigo",
"indignation", "individual", "industry", "inequality", "inertia", "infancy", "infant", "infection", "inference", "inferiority",
"inflation", "influence", "influenza", "information", "infrastructure", "ingredient", "inhabitant", "inheritance", "inhibition", "injury",
"injustice", "inlet", "inn", "innovation", "input", "inquiry", "insanity", "insect", "insertion", "insight",
"insistence", "inspection", "inspiration", "installment", "instance", "instinct", "institution", "instruction", "instructor", "instrument",
"insulation", "insurance", "insurgency", "integer", "integration", "integrity", "intellect", "intelligence", "intensity", "intention",
"interaction", "intercept", "interchange", "interest", "interface", "interference", "interior", "intermediate", "intern", "internal",
"international", "internet", "interpretation", "interruption", "intersection", "interval", "intervention", "interview", "intestine", "intimacy",
"introduction", "intuition", "invasion", "invention", "inventory", "investigator", "investment", "investor", "invitation", "invoice",
"involvement", "irony", "irrigation", "isolation", "issue", "item", "itinerary", "ivory", "jackpot", "jail",
"jam", "janitor", "jar", "jasmine", "jaw", "jazz", "jealousy", "jellyfish", "jersey", "jet",
"jewelry", "jigsaw", "jockey", "jogger", "jogging", "joint", "joker", "journal", "journalist", "journey",
"joy", "judge", "judgment", "jug", "juggler", "juice", "jumper", "junction", "jungle", "junior",
"junk", "jurisdiction", "juror", "jury", "justice", "justification", "juvenile", "kale", "kangaroo", "karate",
"kayak", "kebab", "keeper", "kennel", "kernel", "kettle", "keyboard", "keyhole", "keystone", "kick",
"kidney", "kilometer", "kindness", "king", "kingdom", "kiss", "kitchen", "kite", "kitten", "kiwi",
"knapsack", "knee", "knife", "knight", "knob", "knot", "knowledge", "lab", "label", "laboratory",
"labour", "labyrinth", "lace", "lack", "ladder", "ladle", "ladybug", "lagoon", "lair", "lakeside",
"lamb", "lament", "lamp", "landlord", "landmark", "landscape", "lane", "language", "lantern", "laptop",
"lark", "laser", "lash", "latch", "latitude", "lattice", "laughter", "launch", "laundry", "lavender",
"lavatory", "lawmaker", "lawn", "lawsuit", "lawyer", "layer", "layout", "leader", "leadership", "leaflet",
"league", "leak", "leather", "lecture", "leek", "legacy", "legend", "legislation", "legislator", "legitimacy",
"leisure", "lemonade", "lender", "length", "lens", "leopard", "leprosy", "lesson", "letter", "lettuce",
"level", "lever", "liability", "liaison", "liar", "liberation", "liberty", "librarian", "library", "licence",
"license", "lichen", "lieutenant", "lifestyle", "lifetime", "ligament", "lightning", "likelihood", "limb", "limestone",
"limit", "limousine", "lineage", "linen", "liner", "lingerie", "linguist", "link", "linoleum", "lint",
"lion", "lipstick", "liquid", "liquor", "listener", "literacy", "literature", "litigation", "litter", "livelihood",
"livestock", "lizard", "load", "loader", "loaf", "loan", "lobby", "lobster", "locality", "location",
"locker", "locket", "locomotive", "lodge", "lodging", "logic", "logo", "loneliness", "longevity", "longitude",
"lookout", "loom", "loop", "loophole", "lord", "lotion", "lottery", "lounge", "loyalty", "lubricant",
"lucidity", "luggage", "lullaby", "lumber", "luncheon", "lunchroom", "lung", "lurch", "luxury", "lyric",
"lyricist", "macaroni", "machete", "machinery", "mackerel", "madness", "magazine", "magician", "magistrate", "magnesium",
"magnet", "magnitude", "maid", "mailbox", "mailman", "mainframe", "mainland", "mainstream", "maintenance", "majesty",
"majority", "makeup", "malady", "malice", "mall", "malnutrition", "mammal", "manager", "mandate", "manger",
"mango", "mangrove", "manhole", "manhood", "manifesto", "manor", "mansion", "mantel", "mantle", "manufacturer",
"manuscript", "map", "maple", "marathon", "marble", "march", "margin", "marina", "marinade", "mariner",
"marionette", "marker", "market", "marketing", "marksman", "marriage", "marsh", "marshmallow", "martial", "martyr",
"marvel", "mascot", "masculinity", "mason", "massage", "mast", "masterpiece", "mat", "match", "mate",
"material", "maternity", "mathematician", "mathematics", "matrix", "matter", "mattress", "maturity", "maxim", "maximum",
"mayhem", "mayor", "meadow", "mealtime", "mechanic", "mechanism", "medal", "media", "mediation", "mediator",
"medication", "medicine", "meditation", "medium", "meeting", "melody", "member", "membership", "membrane", "memento",
"memoir", "memorial", "memory", "menace", "mending", "mentality", "mentor", "menu", "merchant", "mercury",
"mercy", "meridian", "merit", "mesmerize", "message", "messenger", "metabolism", "metal", "metaphor", "meteor",
"meteorology", "meter", "method", "methodology", "metropolis", "microphone", "microscope", "microwave", "midday", "midnight",
"midpoint", "midst", "migration", "mileage", "milestone", "military", "militia", "milk", "mill", "millennium",
"miller", "million", "millionaire", "mimic", "mineral", "miner", "miniature", "minimum", "minister", "ministry",
"minority", "mint", "minute", "miracle", "mirror", "mischief", "miser", "misery", "misfortune", "misgiving",
"mishap", "misunderstanding", "mitigation", "mixer", "mixture", "moat", "mobility", "mobilization", "mockery", "moderation",
"moderator", "modernity", "modification", "modifier", "modesty", "moisture", "molecule", "momentum", "monarch", "monarchy",
"monastery", "monetary", "money", "monitor", "monkey", "monologue", "monopoly", "monsoon", "monster", "monument",
"mood", "moonlight", "moonshine", "moor", "morale", "morality", "morbidity", "mortality", "mortgage", "mortuary",
"mosque", "mosquito", "moss", "motel", "moth", "mother", "motion", "motivation", "motorcycle", "mound",
"mountain", "mountaineer", "mouse", "mouth", "movement", "movie", "mower", "mud", "muffin", "mug",
"mulch", "multitude", "mumble", "mummy", "municipality", "murder", "muscle", "museum", "mushroom", "music",
"musician", "musk", "mustard", "mutation", "mutter", "mutton", "muzzle", "mystery", "mythology", "nail",
"napkin", "narrative", "narrow", "nation", "nationality", "native", "nature", "nausea", "navigation", "navigator",
"necklace", "neckline", "needle", "negation", "negligence", "negotiation", "neighbor", "neighborhood", "nemesis", "neon",
"nephew", "nerve", "nest", "network", "neurology", "neutral", "newcomer", "newsletter", "newspaper", "newsroom",
"niche", "nickname", "niece", "nightmare", "nitrogen", "nobility", "noble", "nod", "noise", "nomad",
"nomination", "nominee", "noodle", "norm", "normal", "north", "nose", "nostalgia", "notation", "notebook",
"nothing", "notice", "notification", "notion", "novel", "novelist", "novice", "nuance", "nucleus", "nuisance",
"number", "numeral", "numerator", "nurse", "nursery", "nutmeg", "nutrition", "nylon", "oasis", "oath",
"oatmeal", "obedience", "obesity", "objection", "objective", "obligation", "observatory", "observer", "obsession", "obstacle",
"occasion", "occupation", "occurrence", "ocean", "octave", "octopus", "odds", "odor", "offense", "offer",
"office", "officer", "official", "offspring", "ointment", "olive", "omelet", "omission", "omnivore", "onion",
"onlooker", "onset", "opening", "opera", "operation", "operator", "opinion", "opponent", "opportunity", "opposition",
"optimism", "optimist", "option", "oracle", "orange", "orchestra", "orchid", "order", "ordinance", "organ",
"organization", "organizer", "orientation", "origin", "original", "originality", "ornament", "orphan", "orthodox", "ostrich",
"outbreak", "outcome", "outdoor", "outfit", "outlet", "outline", "outlook", "output", "outrage", "outset",
"outskirts", "outcome", "oval", "oven", "overcoat", "overhead", "overview", "owl", "owner", "ownership",
"oxygen", "oyster", "ozone", "pace", "pacifier", "package", "packet", "pact", "paddle", "pagan",
"page", "pagoda", "pail", "pain", "paint", "painter", "painting", "pair", "palace", "palate",
"palm", "pamphlet", "pancake", "panel", "panic", "panther", "pantry", "paper", "paperback", "paperwork",
"parachute", "parade", "paradise", "paradox", "paragraph", "paralysis", "parameter", "paramount", "paranoia", "parasite",
"pardon", "parent", "parenthesis", "park", "parking", "parliament", "parlor", "parody", "parole", "parsley",
"parsnip", "participant", "participation", "particle", "particular", "partnership", "partridge", "party", "passage", "passenger",
"passion", "passport", "password", "pastor", "pastry", "pasture", "patch", "patent", "path", "pathway",
"patience", "patient", "patriot", "patrol", "patron", "pattern", "pause", "pavement", "pavilion", "paw",
"payment", "peace", "peach", "peak", "peanut", "pear", "pearl", "peasant", "pecan", "pedal",
"pedestrian", "pediatrician", "pedigree", "peer", "penalty", "pendant", "pendulum", "penetration", "penguin", "penicillin",
"peninsula", "pension", "pentagon", "people", "pepper", "peptide", "percent", "percentage", "perception", "percussion",
"perfection", "performance", "perfume", "perimeter", "period", "periodical", "peripheral", "permission", "permit", "persistence",
"person", "personality", "personnel", "perspective", "persuasion", "pesticide", "petition", "petroleum", "pharmacy", "phase",
"phenomenon", "philanthropy", "philosopher", "philosophy", "phobia", "phosphate", "photograph", "photographer", "photography", "phrase",
"physics", "physician", "physicist", "physiology", "pianist", "piano", "pickle", "pickup", "picnic", "picture",
"piece", "pier", "pigment", "pile", "pill", "pillar", "pillow", "pilot", "pin", "pinch",
"pine", "pineapple", "pink", "pint", "pioneer", "pipe", "pipeline", "piracy", "pistol", "piston",
"pitcher", "pizza", "place", "placement", "plague", "plain", "plaintiff", "plan", "plane", "planet",
"planner", "plant", "plantation", "plasma", "plaster", "plastic", "plate", "plateau", "platform", "platinum",
"platter", "playground", "playhouse", "playwright", "plea", "pleasure", "pledge", "plenty", "plight", "plot",
"plow", "plumber", "plumbing", "plunge", "plural", "pocket", "podcast", "poem", "poet", "poetry",
"point", "pointer", "poison", "polar", "polarity", "pole", "police", "policy", "polish", "politician",
"politics", "poll", "pollution", "polyester", "polymer", "pond", "pony", "pool", "popcorn", "pope",
"poplar", "poppy", "popularity", "population", "porch", "pork", "porridge", "port", "portfolio", "portion",
"portrait", "position", "positive", "possession", "possibility", "post", "postage", "poster", "posture", "pot",
"potato", "potential", "pottery", "poultry", "poverty", "powder", "power", "practice", "praise", "prayer",
"precedent", "precipitation", "precision", "predecessor", "predicate", "prediction", "preference", "prefix", "pregnancy", "prejudice",
"premium", "preparation", "presence", "present", "presentation", "preservation", "president", "press", "pressure", "prestige",
"presumption", "pretense", "prevention", "preview", "price", "pride", "priest", "primary", "prime", "prince",
"princess", "principal", "principle", "print", "printer", "priority", "prison", "prisoner", "privacy", "private",
"privilege", "prize", "probability", "problem", "procedure", "process", "processor", "produce", "producer", "product",
"production", "productivity", "profession", "professional", "professor", "profile", "profit", "program", "programmer", "progress",
"progression", "prohibition", "project", "projection", "projector", "prologue", "promise", "promotion", "prompt", "proof",
"propaganda", "propeller", "property", "prophecy", "proponent", "proportion", "proposal", "proposition", "prosecution", "prospect",
"prosperity", "protection", "protein", "protest", "protocol", "provider", "province", "provision", "psychology", "psychiatrist",
"public", "publication", "publicity", "publisher", "pudding", "pulse", "pump", "pumpkin", "punch", "punishment",
"pupil", "puppet", "purchase", "purple", "purpose", "purse", "pursuit", "push", "puzzle", "pyramid",
"qualification", "quality", "quantity", "quantum", "quarrel", "quarter", "quartet", "quartz", "queen", "query",
"question", "questionnaire", "queue", "quilt", "quota", "quotation", "quote", "rabbit", "raccoon", "race",
"racer", "racquet", "radar", "radiation", "radiator", "radical", "radio", "radius", "raffle", "raft",
"rag", "rage", "raid", "rail", "railroad", "railway", "rainbow", "raincoat", "rainfall", "rally",
"ram", "ramp", "ranch", "random", "range", "ranger", "rank", "rap", "rape", "rapid",
"rapport", "rat", "rate", "rating", "ratio", "rationale", "raven", "ravine", "ray", "razor",
"reaction", "reader", "reading", "reality", "realm", "reaper", "reason", "rebel", "rebellion", "rebound",
"rebuild", "recall", "receipt", "receiver", "reception", "recession", "recipe", "recipient", "recognition", "recommendation",
"reconciliation", "reconstruction", "record", "recorder", "recovery", "recreation", "recruit", "rectangle", "recurrence", "recyclable",
"recycling", "redemption", "reduction", "redundancy", "reference", "referendum", "reflection", "reflex", "reform", "refuge",
"refugee", "refund", "refusal", "refuse", "regard", "regime", "region", "register", "registration", "regret",
"regulation", "regulator", "rehabilitation", "rehearsal", "reign", "reimbursement", "reinforcement", "rejection", "relation", "relationship",
"relative", "relaxation", "release", "relevance", "reliability", "relief", "religion", "relocation", "remainder", "reminder",
"remnant", "remote", "removal", "renaissance", "renewal", "renovation", "rent", "replacement", "replica", "replication",
"reply", "report", "reporter", "representation", "representative", "reproduction", "republic", "reputation", "request", "requirement",
"rescue", "research", "researcher", "resemblance", "reservation", "reserve", "reservoir", "residence", "resident", "residue",
"resignation", "resilience", "resistance", "resolution", "resort", "resource", "respect", "response", "responsibility", "restaurant",
"restoration", "restraint", "restriction", "result", "resume", "retail", "retailer", "retention", "retirement", "retreat",
"retrieval", "return", "reunion", "revenue", "reversal", "review", "revision", "revival", "revolution", "reward",
"rhetoric", "rhinoceros", "rhyme", "rhythm", "ribbon", "rice", "riddle", "rider", "ridge", "ridicule",
"rifle", "right", "rigor", "rim", "ring", "riot", "rite", "ritual", "rival", "river",
"road", "roadside", "roast", "robot", "rock", "rocket", "rod", "role", "roll", "roller",
"romance", "roof", "room", "rooster", "root", "rope", "rose", "roster", "rotation", "round",
"route", "routine", "row", "royalty", "rubber", "rubble", "rugby", "rule", "ruler", "rumor",
"runway", "rural", "rush", "rust", "sabotage", "sack", "sacrifice", "saddle", "safari", "safety",
"sail", "sailor", "salad", "salary", "sale", "salesman", "salmon", "salon", "saloon", "salt",
"salute", "salvage", "sample", "sanction", "sanctuary", "sand", "sandwich", "sanitation", "sanity", "sardine",
"satellite", "satin", "satire", "satisfaction", "sauce", "saucer", "sausage", "savage", "savings", "saxophone",
"scale", "scandal", "scanner", "scenario", "scene", "scenery", "scent", "schedule", "scheme", "scholar",
"scholarship", "school", "science", "scientist", "scoop", "scope", "score", "scorer", "scorn", "scout",
"scrap", "screen", "script", "scrutiny", "sculpture", "seal", "search", "season", "seat", "second",
"secret", "secretary", "section", "sector", "security", "segment", "selection", "selector", "semester", "seminar",
"senate", "senator", "sender", "senior", "sensation", "sense", "sensitivity", "sensor", "sentence", "sentiment",
"separation", "sequence", "serial", "series", "servant", "server", "service", "session", "settlement", "settler",
"setup", "severity", "sewage", "sewer", "shack", "shadow", "shaft", "shame", "shampoo", "shape",
"share", "shareholder", "shark", "shed", "sheep", "sheet", "shelf", "shell", "shelter", "shepherd",
"shield", "shift", "shine", "ship", "shipment", "shirt", "shock", "shoe", "shoot", "shop",
"shore", "shortage", "shortcut", "shot", "shoulder", "shovel", "show", "shower", "shred", "shrimp",
"shrine", "shrink", "shrug", "shuffle", "shutdown", "sibling", "sidewalk", "sight", "sign", "signal",
"signature", "significance", "silence", "silicon", "silk", "sill", "silver", "similarity", "simple", "simplicity",
"simulation", "sin", "singer", "single", "sink", "sister", "site", "situation", "size", "skate",
"skeleton", "sketch", "ski", "skill", "skin", "skirt", "skull", "sky", "skyscraper", "slab",
"slang", "slave", "slavery", "sleep", "sleeve", "slice", "slide", "slope", "slot", "slum",
"smell", "smile", "smoke", "snack", "snake", "snap", "snow", "soap", "soccer", "social",
"society", "sock", "sodium", "sofa", "software", "soil", "solar", "soldier", "solid", "solution",
"solvent", "sonata", "song", "sonnet", "soprano", "sorrow", "sort", "soul", "sound", "soup",
"source", "south", "space", "spade", "span", "spark", "speaker", "specialist", "species", "specimen",
"spectacle", "spectrum", "speech", "speed", "spell", "sphere", "spice", "spider", "spike", "spin",
"spine", "spirit", "spiritual", "splash", "split", "sponsor", "spoon", "sport", "spot", "spray",
"spread", "spring", "sprint", "spy", "square", "squeeze", "squirrel", "stability", "stable", "stadium",
"staff", "stage", "stain", "stair", "stake", "stall", "stamp", "stand", "standard", "standing",
"staple", "star", "starch", "stardom", "start", "state", "statement", "station", "statistic", "statue",
"status", "statute", "stay", "steak", "steam", "steel", "stem", "step", "stereo", "stew",
"stick", "stigma", "stimulus", "sting", "stock", "stomach", "stone", "stool", "stop", "storage",
"store", "storm", "story", "stove", "strategy", "straw", "stream", "street", "strength", "stress",
"stretch", "strike", "string", "strip", "stroke", "structure", "struggle", "student", "studio", "study",
"stuff", "stumble", "style", "subject", "submission", "substance", "substitute", "suburb", "subway", "success",
"succession", "sucker", "suffix", "sugar", "suggestion", "suit", "suite", "summary", "summer", "summit",
"sun", "sunset", "supermarket", "supervisor", "supplement", "supplier", "supply", "support", "surface", "surgery",
"surprise", "surround", "survey", "survival", "survivor", "suspect", "suspension", "sustain", "swallow", "swamp",
"swap", "swarm", "sweat", "sweater", "sweep", "sweet", "swim", "swing", "switch", "sword",
"symbol", "sympathy", "symptom", "syndrome", "synonym", "synthesis", "syrup", "system", "table", "tablet",
"tackle", "tactic", "tag", "tail", "tailor", "tale", "talent", "talk", "tank", "tap",
"tape", "target", "task", "taste", "tattoo", "tax", "taxi", "tea", "teacher", "team",
"tear", "technique", "technology", "telephone", "telescope", "television", "temper", "temperature", "temple", "tenant",
"tendency", "tennis", "tension", "tent", "term", "terminal", "terrace", "terrain", "territory", "terror",
"test", "testament", "testimony", "text", "textbook", "texture", "thanks", "theme", "theory", "therapy",
"thesis", "thigh", "thing", "thinking", "thirst", "thought", "thread", "threat", "threshold", "thrill",
"throat", "throne", "thumb", "thunder", "ticket", "tide", "tiger", "tile", "till", "timber",
"time", "timeline", "timer", "tin", "tip", "tire", "tissue", "title", "toast", "tobacco",
"today", "toe", "toilet", "token", "tomato", "tomorrow", "tone", "tongue", "tonight", "tool",
"tooth", "topic", "torch", "tornado", "tortoise", "total", "touch", "tour", "tourist", "tournament",
"tower", "town", "toy", "trace", "track", "trade", "tradition", "traffic", "tragedy", "train",
"trainer", "training", "trait", "transfer", "transit", "transition", "translation", "transmission", "transparency", "transport",
"trap", "trash", "travel", "treasure", "treatment", "tree", "tremor", "trend", "trial", "tribe",
"trick", "trigger", "trim", "trip", "trophy", "trouble", "truck", "trust", "truth", "tube",
"tune", "tunnel", "turkey", "turn", "tutor", "tutorial", "twilight", "twin", "twist", "type",
"typical", "tyrant", "umbrella", "uncle", "under", "understanding", "union", "unique", "unit", "universe",
"university", "update", "upgrade", "upload", "upper", "urban", "urgency", "usage", "user", "usual",
"utility", "vacation", "vaccine", "vacuum", "valley", "value", "valve", "van", "variant", "variation",
"variety", "various", "vault", "vehicle", "velocity", "vendor", "venture", "venue", "verb", "version",
"vessel", "veteran", "victim", "victory", "video", "view", "viewer", "village", "vine", "vinegar",
"violation", "violence", "violin", "virtual", "virus", "visa", "vision", "visit", "visitor", "visual",
"vital", "vitamin", "vocal", "voice", "volume", "vote", "voter", "voyage", "wage", "wagon",
"wait", "waiter", "wake", "walk", "wall", "wallet", "walnut", "want", "war", "ward",
"wardrobe", "warehouse", "warmth", "warning", "warrant", "warrior", "wash", "washer", "waste", "watch",
"water", "wave", "way", "weakness", "wealth", "weapon", "wear", "weather", "web", "wedding",
"week", "weekend", "weight", "welcome", "welfare", "west", "wheel", "where", "while", "whip",
"whiskey", "whisper", "white", "whole", "width", "wife", "wild", "will", "wind", "window",
"wine", "wing", "winner", "winter", "wire", "wisdom", "wish", "witness", "wolf", "woman",
"wonder", "wood", "woodland", "wool", "word", "work", "worker", "workplace", "world", "worry",
"worth", "wrap", "wreck", "wrist", "write", "writer", "writing", "wrong", "yard", "year",
"yesterday", "yield", "yoga", "yogurt", "youth", "zebra", "zero", "zone", "zoo"
)
// 合并词表(基础 + 扩展,约 5 倍词库)
val ALL_MNEMONIC_WORDS = MNEMONIC_WORDS + MNEMONIC_WORDS_EXTRA
val DEFAULT_APPLICATION_ID = "io.openim.flutter.openim"
val signingProperties = Properties()
val signingPropertiesFile = rootProject.file("key.properties")
if (signingPropertiesFile.exists()) {
signingPropertiesFile.inputStream().use { signingProperties.load(it) }
}
fun projectOrEnv(projectProperty: String, envName: String): String? {
return project.findProperty(projectProperty)?.toString()?.takeIf { it.isNotBlank() }
?: System.getenv(envName)?.takeIf { it.isNotBlank() }
}
fun signingValue(projectProperty: String, envName: String, vararg propertyNames: String): String? {
return projectOrEnv(projectProperty, envName)
?: propertyNames.firstNotNullOfOrNull { name ->
signingProperties.getProperty(name)?.takeIf { it.isNotBlank() }
}
}
fun isEnabled(value: String?): Boolean {
return value != null && (
value.equals("true", ignoreCase = true) ||
value.equals("yes", ignoreCase = true) ||
value == "1"
)
}
// 助记词风格包名:从合并词表中随机选词,格式 com.{word1}.{word2}.{word3}.{word4}
// 类似冷钱包助记词,易读且符合 Android 包名规范(小写字母)
fun generateRandomPackageName(): String {
val words = ALL_MNEMONIC_WORDS.shuffled().take(4)
return "com.${words.joinToString(".")}"
}
fun resolveProjectFile(path: String): File {
val directFile = File(path)
if (directFile.isAbsolute) {
return directFile
}
val rootRelativeFile = rootProject.file(path)
return if (rootRelativeFile.exists()) rootRelativeFile else project.file(path)
}
fun randomUrlSafePassword(): String {
val randomBytes = ByteArray(18)
SecureRandom().nextBytes(randomBytes)
return Base64.getUrlEncoder().withoutPadding().encodeToString(randomBytes)
}
fun ensureStableLocalReleaseSigning(): Boolean {
if (signingPropertiesFile.exists()) {
return true
}
val keystoreFile = rootProject.file("app/local-release.jks")
if (keystoreFile.exists()) {
println("⚠️ 已存在本地签名文件但缺少 android/key.properties无法确认密码将使用 debug 签名降级")
return false
}
val keytoolName = if (System.getProperty("os.name").lowercase().contains("win")) "keytool.exe" else "keytool"
val bundledKeytool = File(System.getProperty("java.home"), "bin/$keytoolName")
val keytoolPath = if (bundledKeytool.exists()) bundledKeytool.absolutePath else keytoolName
val keyAlias = "local_release"
val keyPassword = randomUrlSafePassword()
keystoreFile.parentFile.mkdirs()
println("🔐 首次构建:生成本地固定 release 签名 ${keystoreFile.absolutePath}")
val process = try {
ProcessBuilder(
keytoolPath,
"-genkeypair",
"-v",
"-keystore", keystoreFile.absolutePath,
"-alias", keyAlias,
"-keyalg", "RSA",
"-keysize", "2048",
"-validity", "10000",
"-storepass", keyPassword,
"-keypass", keyPassword,
"-dname", "CN=Flutter Shell, OU=Release, O=DanDan, L=Ho Chi Minh, ST=Ho Chi Minh, C=VN"
)
.redirectErrorStream(true)
.start()
} catch (e: Exception) {
println("✗ 执行 keytool 失败: ${e.message}")
return false
}
val output = process.inputStream.bufferedReader().readText()
val exitCode = process.waitFor()
if (exitCode != 0 || !keystoreFile.exists()) {
println("✗ 本地固定签名生成失败: $output")
return false
}
signingPropertiesFile.writeText(
"""
# Generated by android/app/build.gradle.kts. This file is ignored by git.
storeFile=app/local-release.jks
storePassword=$keyPassword
keyAlias=$keyAlias
keyPassword=$keyPassword
""".trimIndent() + "\n"
)
signingProperties.setProperty("storeFile", "app/local-release.jks")
signingProperties.setProperty("storePassword", keyPassword)
signingProperties.setProperty("keyAlias", keyAlias)
signingProperties.setProperty("keyPassword", keyPassword)
println("✓ 已生成 android/key.properties后续 release 构建会复用同一签名")
return true
}
// 包名生成逻辑
// 优先使用手动指定的包名,否则使用固定默认包名;如确需随机包名,可显式开启 RANDOMIZE_APPLICATION_ID=true
fun computeApplicationId(): String {
val manualAppId = projectOrEnv("applicationId", "APPLICATION_ID")
if (manualAppId != null && manualAppId.isNotBlank()) {
return manualAppId
}
val packageSuffix = projectOrEnv("packageSuffix", "PACKAGE_SUFFIX")
?: System.getenv("CI_COMMIT_BRANCH")?.replace("/", "_")
?: System.getenv("GITHUB_REF_NAME")?.replace("/", "_")
if (packageSuffix != null && packageSuffix.isNotBlank()) {
return "io.openim.flutter.demo.$packageSuffix"
}
if (isEnabled(projectOrEnv("randomizeApplicationId", "RANDOMIZE_APPLICATION_ID"))) {
return generateRandomPackageName()
}
return DEFAULT_APPLICATION_ID
}
android {
namespace = "io.openim.flutter.openim"
compileSdk = 36
ndkVersion = "27.0.12077973" // 使用已存在的NDK版本避免下载问题
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
isCoreLibraryDesugaringEnabled = true
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
lint {
checkReleaseBuilds = false
abortOnError = false
}
// 签名配置
signingConfigs {
// Debug 签名(默认)
getByName("debug") {
// 使用默认的 debug keystore
}
// Release 签名配置
// 优先级:
// 1. 手动指定的签名环境变量、Gradle 属性或 android/key.properties
// 2. 显式开启时生成随机签名GENERATE_RANDOM_KEYSTORE=true兼容旧流程
// 3. 自动生成并复用本地固定签名(默认)
// 4. Debug 签名(降级方案)
create("release") {
fun configureFromAvailableSigningProperties(sourceName: String): Boolean {
val configuredKeystoreFile = signingValue("keystoreFile", "KEYSTORE_FILE", "storeFile", "keystoreFile")
val configuredKeystorePassword = signingValue("keystorePassword", "KEYSTORE_PASSWORD", "storePassword", "keystorePassword")
val configuredKeyAlias = signingValue("keyAlias", "KEY_ALIAS", "keyAlias")
val configuredKeyPassword = signingValue("keyPassword", "KEY_PASSWORD", "keyPassword")
val hasPartialConfig = listOf(
configuredKeystoreFile,
configuredKeystorePassword,
configuredKeyAlias,
configuredKeyPassword
).any { it != null }
if (configuredKeystoreFile != null &&
configuredKeystorePassword != null &&
configuredKeyAlias != null &&
configuredKeyPassword != null
) {
val keystore = resolveProjectFile(configuredKeystoreFile)
if (!keystore.exists()) {
println("警告: Keystore 文件不存在: $configuredKeystoreFile")
return false
}
storeFile = keystore
storePassword = configuredKeystorePassword
this.keyAlias = configuredKeyAlias
this.keyPassword = configuredKeyPassword
println("✓ 使用${sourceName} release 签名: ${keystore.absolutePath}")
return true
}
if (hasPartialConfig) {
println("警告: release 签名配置不完整,将尝试使用本地固定签名")
}
return false
}
if (configureFromAvailableSigningProperties("已配置的")) {
return@create
}
// 方式2: 显式开启时才生成随机签名。默认禁用,避免每次打包都触发未知应用风控。
val generateRandom = projectOrEnv("generateRandomSigning", "GENERATE_RANDOM_KEYSTORE") ?: "false"
if (isEnabled(generateRandom)) {
val buildDir = layout.buildDirectory.get().asFile
val keystoreDir = File(buildDir, "keystore")
keystoreDir.mkdirs()
val timestamp = System.currentTimeMillis()
val randomSuffix = randomUrlSafePassword().take(8)
val keystoreFile = File(keystoreDir, "release_${timestamp}_${randomSuffix}.jks")
val keyAlias = "release_key_${randomSuffix}"
val keystorePassword = randomUrlSafePassword()
if (keystoreFile.exists()) {
keystoreFile.delete()
}
println("🔐 正在生成随机 release 签名...")
println(" Keystore: ${keystoreFile.absolutePath}")
println(" Alias: $keyAlias")
val keytoolName = if (System.getProperty("os.name").lowercase().contains("win")) "keytool.exe" else "keytool"
val bundledKeytool = File(System.getProperty("java.home"), "bin/$keytoolName")
val keytoolPath = if (bundledKeytool.exists()) bundledKeytool.absolutePath else keytoolName
val process = try {
ProcessBuilder(
keytoolPath,
"-genkeypair",
"-v",
"-keystore", keystoreFile.absolutePath,
"-alias", keyAlias,
"-keyalg", "RSA",
"-keysize", "2048",
"-validity", "10000", // 有效期约 27 年
"-storepass", keystorePassword,
"-keypass", keystorePassword,
"-dname", "CN=Flutter Shell, OU=Ephemeral, O=DanDan, L=Ho Chi Minh, ST=Ho Chi Minh, C=VN"
)
.redirectErrorStream(true)
.start()
} catch (e: Exception) {
println("✗ 执行 keytool 失败: ${e.message}")
null
}
val generated = process?.let {
val output = it.inputStream.bufferedReader().readText()
val exitCode = it.waitFor()
if (exitCode != 0) {
println("✗ 随机签名生成失败: $output")
}
exitCode == 0 && keystoreFile.exists()
} ?: false
if (generated) {
storeFile = keystoreFile
storePassword = keystorePassword
this.keyAlias = keyAlias
this.keyPassword = keystorePassword
println("✓ 使用随机生成的 release 签名")
return@create
}
}
if (ensureStableLocalReleaseSigning() && configureFromAvailableSigningProperties("本地固定")) {
return@create
}
println("⚠️ 未配置 release 签名,将使用 debug 签名")
}
}
defaultConfig {
// 动态 Application ID可通过环境变量或 Gradle 属性修改)
val computedAppId = computeApplicationId()
applicationId = computedAppId
println("构建包名: $computedAppId")
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = 23
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
multiDexEnabled = true
manifestPlaceholders["networkSecurityConfig"] = "@xml/network_security_config"
manifestPlaceholders["usesCleartextTraffic"] = "true"
// .so 文件加固配置
// 注意:当使用 flutter build apk --split-per-abi 或 --target-platform 时,
// Flutter 会自动设置 ABI 过滤器,这里不需要手动配置,否则会冲突
// 如果需要手动控制架构,可以通过以下方式:
// 1. 不使用 --split-per-abi使用完整的 APK
// 2. 或者移除这里的 abiFilters 配置,让 Flutter 命令行参数控制
//
// 如果需要手动设置,取消下面的注释(但不要与 --split-per-abi 同时使用)
// ndk {
// // 只打包主流架构,减少暴露风险
// // 建议只打包 arm64-v8a主流设备和 armeabi-v7a兼容旧设备
// abiFilters += listOf("arm64-v8a", "armeabi-v7a")
// }
}
buildTypes {
release {
val allowReleaseCleartext = isEnabled(projectOrEnv("allowReleaseCleartext", "ALLOW_RELEASE_CLEARTEXT"))
manifestPlaceholders["networkSecurityConfig"] =
if (allowReleaseCleartext) "@xml/network_security_config" else "@xml/network_security_config_release"
manifestPlaceholders["usesCleartextTraffic"] = allowReleaseCleartext.toString()
// 如果配置了 release 签名,优先使用;否则使用 debug 签名
val releaseSigningConfig = signingConfigs.findByName("release")
if (releaseSigningConfig != null && releaseSigningConfig.storeFile != null) {
signingConfig = releaseSigningConfig
println("使用自定义 release 签名")
} else {
signingConfig = signingConfigs.getByName("debug")
println("使用 debug 签名release 构建)")
}
// 按照OpenIM官方文档建议默认禁用混淆解决白屏问题
// 如果需要启用混淆加固,可以通过环境变量 ENABLE_PROGUARD=true 来启用
val enableProguard = project.findProperty("enableProguard") as String?
?: System.getenv("ENABLE_PROGUARD")
?: "false"
if (enableProguard == "true") {
println("⚠️ 已启用代码混淆(可能导致白屏问题,请充分测试)")
// 启用代码混淆和资源压缩(简单加固)
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
} else {
println("✅ 已禁用代码混淆按照OpenIM官方建议避免白屏问题")
// 按照OpenIM官方文档建议禁用混淆解决白屏问题
isMinifyEnabled = false
isShrinkResources = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
// 启用代码优化(不影响混淆)
isDebuggable = false
isJniDebuggable = false
isRenderscriptDebuggable = false
}
}
// .so 文件加固:打包后处理任务(可选)
// 注意:这需要在构建后手动处理,或者使用第三方加固工具
// 这里只是提供配置示例
packaging {
jniLibs {
// 仅排除调试符号(减少 APK 体积)。不要排除 libc++_shared.so否则 release 安装后闪退Flutter 引擎/插件依赖该库)
excludes += listOf("**/*.so.dbg", "**/*.so.debug")
}
// 移除未使用的资源
resources {
excludes += listOf("META-INF/*.kotlin_module", "META-INF/*.version")
}
}
}
flutter {
source = "../.."
}
dependencies {
implementation("androidx.core:core:1.13.1")
implementation("androidx.multidex:multidex:2.0.1")
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
// 华为/荣耀等设备 SSL 握手失败修复(不依赖 Google Play Services使用 Conscrypt 替代 GMS ProviderInstaller
implementation("org.conscrypt:conscrypt-android:2.5.2")
}